aboutsummaryrefslogtreecommitdiffstats
path: root/main/apr/APKBUILD
blob: 097cd35e00426c13da4ee74535bd8dc731b0b262 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apr
pkgver=1.3.9
pkgrel=0
pkgdesc="The Apache Portable Runtime"
url="http://apr.apache.org/"
license="APACHE"
depends=
makedepends="e2fsprogs-dev"
subpackages="$pkgname-dev"
source="http://www.apache.org/dist/$pkgname/$pkgname-$pkgver.tar.bz2"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	./configure --prefix=/usr \
		--datadir=/usr/share \
		--enable-nonportable-atomics \
		--with-devrandom=/dev/urandom
	make || return 1
	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"
	mkdir -p "$subpkgdir"
	mv "$pkgdir"/* "$subpkgdir"/
	mkdir -p "$pkgdir"/usr/lib
	mv "$subpkgdir"/usr/lib/*.so* "$pkgdir"/usr/lib/
	return 0
}

md5sums="7138ac64d4458eeeaa9b9aefa4e6e51b  apr-1.3.9.tar.bz2"