aboutsummaryrefslogtreecommitdiffstats
path: root/main/pkgconf/APKBUILD
blob: 401207cf9db8cec5604c09e46abc2fa992b107a9 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=pkgconf
pkgver=1.2.2
pkgrel=0
pkgdesc="development framework configuration tools"
url="https://github.com/pkgconf/pkgconf"
arch="all"
license="ISC"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
replaces="pkgconfig"
provides="pkgconfig=1"
source="https://distfiles.dereferenced.org/pkgconf/pkgconf-$pkgver.tar.xz"
subpackages="$pkgname-doc"
if [ "$CHOST" = "$CBUILD" ]; then
	makedepends="$makedepends kyua atf"
fi

builddir="$srcdir"/pkgconf-$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
	if [ "$CHOST" = "$CBUILD" ]; then
		make check || return 1
	fi
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/usr/bin
	make DESTDIR="$pkgdir" install || return 1
	ln -s pkgconf "$pkgdir"/usr/bin/pkg-config
}

md5sums="325e9d4df6727bca681adc74461e837d  pkgconf-1.2.2.tar.xz"
sha256sums="b445d16df8b6e88489039eb2d7d91d5668025cb058a1852f3e0fdee19c8cb104  pkgconf-1.2.2.tar.xz"
sha512sums="0d9f74a69bd36f55b1485341127bff08487d5216ae495cea0474e6d23bb323d5c8c7d36b25c2e58282b1bcb0d74da6bb93ee0757e98405aba42b13f2e76eeac2  pkgconf-1.2.2.tar.xz"