summaryrefslogtreecommitdiff
path: root/system/pkgconf
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-14 02:22:19 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-14 02:22:56 -0500
commitb1eb50599e4db7eb4501af75cbbfa22007081ea5 (patch)
treec94a34c882cc17adedd781e8c5f34349b2a62416 /system/pkgconf
parentb9e85bbdcf38547ef2ca4e5c2a6e6293bbcd2752 (diff)
downloadpackages-b1eb50599e4db7eb4501af75cbbfa22007081ea5.tar.gz
packages-b1eb50599e4db7eb4501af75cbbfa22007081ea5.tar.bz2
packages-b1eb50599e4db7eb4501af75cbbfa22007081ea5.tar.xz
packages-b1eb50599e4db7eb4501af75cbbfa22007081ea5.zip
The New Plan
all pkgs needed to bootstrap -> system others -> user
Diffstat (limited to 'system/pkgconf')
-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"