# Maintainer: Natanael Copa pkgname=apr pkgver=1.4.5 pkgrel=1 pkgdesc="The Apache Portable Runtime" url="http://apr.apache.org/" arch="all" license="APACHE" depends= depends_dev="util-linux-ng-dev bash" makedepends="$depends_dev" subpackages="$pkgname-dev" source="http://www.apache.org/dist/$pkgname/$pkgname-$pkgver.tar.bz2 " _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" } build() { cd "$_builddir" ./configure --prefix=/usr \ --datadir=/usr/share \ --enable-nonportable-atomics \ --with-devrandom=/dev/urandom make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install } # basicly everything thats not a *.so* file belongs to the -dev package # we override the pre-defined func. dev() { local i depends="$pkgname $depends_dev" mkdir -p "$subpkgdir" mv "$pkgdir"/* "$subpkgdir"/ mkdir -p "$pkgdir"/usr/lib mv "$subpkgdir"/usr/lib/*.so* "$pkgdir"/usr/lib/ return 0 } md5sums="8b53f5a5669d0597f2da889a2f576eb6 apr-1.4.5.tar.bz2"