Xorg and its components have been updated
[dragora.git] / recipes / xorg / util / xorg-cf-files / recipe
blob1b5d42e981f57d70e923174d87af60f95685aa78
1 # Build recipe for xorg-cf-files.
3 # Copyright (c) 2019, 2022 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=xorg-cf-files
21 version=1.0.7
22 arch=noarch
23 release=1
25 # Define a category for the output of the package name
26 pkgcategory=xorg_util
28 tarname=${program}-${version}.tar.bz2
30 # Remote source(s)
31 fetch=https://www.x.org/releases/individual/util/$tarname
33 description="
34 Data files for the imake package.
36 The xorg-cf-files package contains the data files for the imake utility,
37 defining the known settings for a wide variety of platforms (many of which
38 have not been verified or tested in over a decade), and for many of the
39 libraries formerly delivered in the X.Org monolithic releases.
42 homepage=https://www.x.org
43 license="MIT X Consortium"
45 # Source documentation
46 docs="COPYING ChangeLog README"
47 docsdir="${docdir}/${program}-${version}"
49 build()
51     unpack "${tardir}/$tarname"
53     cd "$srcdir"
55     # Set sane permissions
56     chmod -R u+w,go-w,a+rX-s .
58     ./configure $configure_args --libdir=/usr/lib${libSuffix} \
59      --mandir=$mandir --docdir=$docsdir --build="$(gcc -dumpmachine)"
61     make -j${jobs} V=1
62     make -j${jobs} DESTDIR="$destdir" install
64     # Compress and link man pages (if needed)
65     if test -d "${destdir}/$mandir"
66     then
67         (
68             cd "${destdir}/$mandir"
69             find . -type f -exec lzip -9 {} +
70             find . -type l | while read -r file
71             do
72                 ln -sf "$(readlink -- "$file").lz" "${file}.lz"
73                 rm -- "$file"
74             done
75         )
76     fi
78     # Copy documentation
79     mkdir -p "${destdir}${docsdir}"
80     cp -p $docs "${destdir}${docsdir}"