summaryrefslogtreecommitdiff
path: root/system/pkgconf/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'system/pkgconf/APKBUILD')
-rw-r--r--system/pkgconf/APKBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/system/pkgconf/APKBUILD b/system/pkgconf/APKBUILD
new file mode 100644
index 000000000..7c95955f6
--- /dev/null
+++ b/system/pkgconf/APKBUILD
@@ -0,0 +1,54 @@
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=pkgconf
+pkgver=1.4.2
+pkgrel=0
+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"
+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="d9d3bfc7ddc3ceda65f7ad11b1a3c8a48aee0b5ac135aeb54b41091ca1ef0d9a5cda4a5c1ba2470ec12ce870a361eeddd802243eda3c2e2c0f2be3e7fe0ca236 pkgconf-1.4.2.tar.xz"