APKBUILD 928 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apr
Natanael Copa's avatar
Natanael Copa committed
3
pkgver=1.4.2
4
pkgrel=1
Natanael Copa's avatar
Natanael Copa committed
5 6 7
pkgdesc="The Apache Portable Runtime"
url="http://apr.apache.org/"
license="APACHE"
Natanael Copa's avatar
Natanael Copa committed
8
depends=
Natanael Copa's avatar
Natanael Copa committed
9
makedepends="util-linux-ng-dev"
Natanael Copa's avatar
Natanael Copa committed
10 11 12
subpackages="$pkgname-dev"
source="http://www.apache.org/dist/$pkgname/$pkgname-$pkgver.tar.bz2"

Natanael Copa's avatar
Natanael Copa committed
13
_builddir="$srcdir"/$pkgname-$pkgver
Natanael Copa's avatar
Natanael Copa committed
14
build() {
Natanael Copa's avatar
Natanael Copa committed
15
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
16 17 18 19 20
	./configure --prefix=/usr \
		--datadir=/usr/share \
		--enable-nonportable-atomics \
		--with-devrandom=/dev/urandom
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
21 22 23 24 25
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
Natanael Copa's avatar
Natanael Copa committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39
}

# basicly everything thats not a *.so* file belongs to the -dev package
# we override the pre-defined func.
dev() {
	local i
	depends="$pkgname"
	mkdir -p "$subpkgdir"
	mv "$pkgdir"/* "$subpkgdir"/
	mkdir -p "$pkgdir"/usr/lib
	mv "$subpkgdir"/usr/lib/*.so* "$pkgdir"/usr/lib/
	return 0
}

Natanael Copa's avatar
Natanael Copa committed
40
md5sums="4b00e8f70c067893d075577962656b35  apr-1.4.2.tar.bz2"