summaryrefslogtreecommitdiff
path: root/user/apr/APKBUILD
blob: 1d7ba9d30d3ea982d3842712377dda5f4b97e0be (plain) (blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: 
pkgname=apr
pkgver=1.6.5
pkgrel=0
pkgdesc="The Apache Portable Runtime"
url="http://apr.apache.org/"
arch="all"
license="Apache-2.0"
depends=""
depends_dev="util-linux-dev bash"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="http://www.apache.org/dist/$pkgname/$pkgname-$pkgver.tar.bz2
	apr-1.6.2-dont-test-dlclose.patch
	"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--datadir=/usr/share \
		--enable-nonportable-atomics \
		--with-devrandom=/dev/urandom
	make
}

check() {
	cd "$builddir"
	make -j1 check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

# APR is mostly a development package; only ship libraries in the default pkg.
dev() {
	depends="$pkgname $depends_dev"
	mkdir -p "$subpkgdir"
	mv "$pkgdir"/* "$subpkgdir"/
	mkdir -p "$pkgdir"/usr/lib
	mv "$subpkgdir"/usr/lib/*.so* "$pkgdir"/usr/lib/
}

sha512sums="d3511e320457b5531f565813e626e7941f6b82864852db6aa03dd298a65dbccdcdc4bd580f5314f8be45d268388edab25efe88cf8340b7d2897a4dbe9d0a41fc  apr-1.6.5.tar.bz2
9fb931e45f30fbe68af56849dfca148c09cdf85e300af14fb259cbd43470113288680bdb21189d4cf13f5ce95f8d28666822535e017e64ace5324339ab50cbef  apr-1.6.2-dont-test-dlclose.patch"