# Contributor: William Pitcock # Maintainer: William Pitcock pkgname=pkgconf pkgver=1 pkgrel=3 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="http://rabbit.dereferenced.org/~nenolod/distfiles/pkgconf-$pkgver.tar.xz" subpackages="$pkgname-doc" 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="4a4215afa443be74705b2b6ae6e23e7b pkgconf-1.tar.xz" sha256sums="6e46cf28b252b636459c0b7f808997858206b92b3fac37135781128ce5d47704 pkgconf-1.tar.xz" sha512sums="eb27d83ef9d1e2ba5d92a03728b1a4c533b00d747751978d96bd7567e53a7a68b1c4ae0135b95868415e673e88369b24ccc8a63a5ae7ae8ba1c6180046a39bff pkgconf-1.tar.xz"