mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-09 18:52:30 +01:00
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.
49 lines
1.1 KiB
Plaintext
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"
|