blob: c9d4cc35e4a8c5d3a7e09b3f9b435d62144c8991 (
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
36
37
38
39
40
41
42
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apr
pkgver=1.4.2
pkgrel=3
pkgdesc="The Apache Portable Runtime"
url="http://apr.apache.org/"
arch="x86 x86_64"
license="APACHE"
depends=
makedepends="util-linux-ng-dev"
depends_dev="util-linux-ng-dev"
subpackages="$pkgname-dev"
source="http://www.apache.org/dist/$pkgname/$pkgname-$pkgver.tar.bz2"
_builddir="$srcdir"/$pkgname-$pkgver
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="4b00e8f70c067893d075577962656b35 apr-1.4.2.tar.bz2"
|