Natanael Copa 13b2d83cf8 main/pkgconf: delete the pkg-config symlink
We do not want completely replace pkg-config til we are more or less sure
that all package can build with it.

For now, to test pkgconf we should use:

 export PKG_CONFIG=pkgconf

and this could even be done from /etc/abuild.conf.
2011-07-27 11:28:53 +00:00

49 lines
1.1 KiB
Plaintext

# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=pkgconf
pkgver=0.1.1
pkgrel=2
pkgdesc="development framework configuration tools"
url="http://www.atheme.org/"
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
# we remove the pkg-config symlink since it breaks the build boxes
rm -f "$pkgdir"/usr/lib/*.la \
"$pkgdir"/usr/bin/pkg-config
}
md5sums="87fe4e0128fbf0b9f9a393df37895052 pkgconf-0.1.1.tar.bz2"