recipes: compressors/xz: Upgraded to version 5.6.2
[dragora.git] / recipes / xorg / util / macros / recipe
blob6908bf239aaa7c2e40b7f57d7ab3a6589cc0d999
1 # Build recipe for util-macros.
3 # Copyright (c) 2017 Mateus P. Rodrigues <mprodrigues@dragora.org>.
4 # Copyright (c) 2017-2018, 2021, 2023 Matias Fonzo, <selk@dragora.org>.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 #    http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 # Exit immediately on any error
19 set -e
21 program=util-macros
22 version=1.20.0
23 arch=noarch
24 release=1
26 # Define a category for the output of the package name
27 pkgcategory=xorg_util
29 tarname=${program}-${version}.tar.gz
31 # Remote source(s)
32 fetch=https://www.x.org/releases/individual/util/$tarname
34 description="
35 Autoconf macros used in X modular configure.ac files.
37 The util-macros package contains the m4 macros used
38 by all of the Xorg packages.
41 homepage=https://www.x.org
42 license="MIT X Consortium"
44 # Source documentation
45 docs="COPYING ChangeLog README.md"
46 docsdir="${docdir}/${program}-${version}"
48 build()
50     unpack "${tardir}/$tarname"
52     cd "$srcdir"
54     # Set sane permissions
55     chmod -R u+w,go-w,a+rX-s .
57     ./configure $configure_args
58     make -j${jobs} V=1
59     make -j${jobs} V=1 DESTDIR="$destdir" install
61     # Copy documentation
62     mkdir -p "${destdir}/$docsdir"
63     cp -p $docs "${destdir}/$docsdir"