blob: 8d09105a4404b479c7aa278bb755d1649a718577 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=pkgconf
pkgver=1.3.4
pkgrel=1
pkgdesc="development framework configuration tools"
url="https://github.com/pkgconf/pkgconf"
arch="all"
license="ISC"
replaces="pkgconfig"
provides="pkgconfig=1"
source="https://distfiles.dereferenced.org/pkgconf/pkgconf-$pkgver.tar.xz
variable.patch"
subpackages="$pkgname-doc $pkgname-dev"
checkdepends="kyua atf"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--with-pkg-config-dir=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig \
|| return 1
make || return 1
}
check() {
cd "$builddir"
make check || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
ln -s pkgconf "$pkgdir"/usr/bin/pkg-config
}
dev() {
default_dev || return 1
# Move pkg-config back to main package (default_dev implicitly moves
# files /usr/bin/*-config to -dev).
mv "$subpkgdir"/usr/bin/pkg-config "$pkgdir"/usr/bin/
mkdir -p "$pkgdir"/usr/share/aclocal/
mv "$subpkgdir"/usr/share/aclocal/pkg.m4 "$pkgdir"/usr/share/aclocal/
}
sha512sums="9771e33521cce2128de43b6f8a88f26f3028ac4470fe9e618859e29d07c0c116772e61cfc626bbf3faa6e12eecde94125e9e92020f6b32a4e2914da3f74de06a pkgconf-1.3.4.tar.xz
51f2ba8bcf2625d24e7347e2f2b47fec4bd6f6bac06555c593e86986843d8dc5b697b60544ccc31c8edcc182c47427a88a48c461761fe6d6efdd6c109738e52f variable.patch"
|