aboutsummaryrefslogtreecommitdiffstats
path: root/main/pkgconf
diff options
context:
space:
mode:
Diffstat (limited to 'main/pkgconf')
-rw-r--r--main/pkgconf/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/main/pkgconf/APKBUILD b/main/pkgconf/APKBUILD
new file mode 100644
index 0000000000..a33f158069
--- /dev/null
+++ b/main/pkgconf/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=pkgconf
+pkgver=0.8.8
+pkgrel=0
+pkgdesc="development framework configuration tools"
+url="https://github.com/nenolod/pkgconf"
+arch="all"
+license="ISC"
+depends=""
+depends_dev="popt-dev"
+makedepends="$depends_dev"
+install=""
+replaces="pkgconfig"
+source="http://tortois.es/~nenolod/distfiles/pkgconf-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/pkgconf-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p "$pkgdir"/usr/bin
+ make DESTDIR="$pkgdir" install || return 1
+ ln -s pkgconf "$pkgdir"/usr/bin/pkg-config
+}
+
+md5sums="8864bae12c6cc57833825fa4f3ce7cd1 pkgconf-0.8.8.tar.bz2"