etc: Enable a tty for a serial port by default.
[dragora.git] / recipes / x-libs / icon-naming-utils / recipe
blob16b38683a71a5b8546938c5d99cfb249b8ddbd51
1 # Build recipe for icon-naming-utils.
3 # Copyright (C) 2019, 2021 Matias Fonzo, <selk@dragora.org>.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 #    http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # Exit immediately on any error
18 set -e
20 program=icon-naming-utils
21 version=0.8.90
22 arch=noarch
23 release=2
25 # Define a category for the output of the package name
26 pkgcategory=x-libs
28 tarname=${program}-${version}.tar.bz2
30 # Remote source(s)
31 fetch=http://tango.freedesktop.org/releases/$tarname
33 description="
34 Perl script used for the Icon Naming Specification.
36 icon-naming-utils is a script for maintaining backwards compatibility with
37 current desktop icon themes, while migrating to the names specified in the
38 Icon Naming Specification:
40 https://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-
41 latest.html
44 homepage=https://tango.freedesktop.org
45 license=GPLv2+
47 docs="AUTHORS COPYING NEWS README"
48 docsdir="${docdir}/${program}-${version}"
50 build()
52     unpack "${tardir}/$tarname"
54     cd "$srcdir"
56     # Apply a patch from Fedora to correct the installation paths and .pc
57     patch -p1 < "${worktree}/patches/icon-naming-utils/icon-naming-utils-0.8.7-paths.patch"
59     autoreconf
61     # Set sane permissions
62     chmod -R u+w,go-w,a+rX-s .
64     ./configure $configure_args
66     make -j${jobs} DESTDIR="$destdir" install
68     # Copy documentation
69     mkdir -p "${destdir}/$docsdir"
70     cp -p $docs "${destdir}/$docsdir"