APKBUILD 1.4 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apr-util
3 4
pkgver=1.3.10
pkgrel=0
5
pkgdesc="The Apache Portable Runtime Utility Library"
Natanael Copa's avatar
Natanael Copa committed
6
url="http://apr.apache.org/"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8
license="APACHE"
9
depends=
Natanael Copa's avatar
Natanael Copa committed
10
subpackages="$pkgname-dev $pkgname-dbm_db $pkgname-dbd_pgsql
11 12
	$pkgname-dbd_sqlite3 $pkgname-ldap"
makedepends="apr-dev expat-dev bash openldap-dev sqlite-dev postgresql-dev
Natanael Copa's avatar
Natanael Copa committed
13 14
	db-dev"
depends_dev="expat-dev apr-dev openldap-dev sqlite-dev postgresql-dev
15
	db-dev"
Natanael Copa's avatar
Natanael Copa committed
16 17 18 19 20 21
source="http://www.apache.org/dist/apr/$pkgname-$pkgver.tar.bz2"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	./configure --prefix=/usr \
		--with-apr=/usr \
22 23 24 25
		--with-ldap \
		--with-pgsql \
		--with-sqlite3 \
		--with-berkeley-db \
26
		--without-iconv \
Natanael Copa's avatar
Natanael Copa committed
27 28
		--without-sqlite2 \
		--without-gdbm \
29
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
30 31

	make || return 1
32 33 34 35
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
Natanael Copa's avatar
Natanael Copa committed
36 37 38 39 40 41
	make DESTDIR="$pkgdir" install

	# we dont need this one
	rm "$pkgdir"/usr/lib/*.exp
}

42 43 44 45 46 47 48 49 50 51 52 53 54 55
_mv_mod() {
	pkgdesc="The Apache Portable Runtime Utility Library - $2 driver"
	depends=
	local _moddir="usr/lib/apr-util-1"
	mkdir -p "$subpkgdir"/$_moddir
	mv "$pkgdir"/$_moddir/apr_$1*.so "$subpkgdir"/$_moddir/
}

dbm_db() { _mv_mod dbm_db "Berkley DB"; }
dbd_pgsql() { _mv_mod dbd_pgsql "PostgreSQL"; }
dbd_mysql() { _mv_mod dbd_mysql "MySQL"; }
dbd_sqlite3() { _mv_mod dbd_sqlite "SQLite3"; }
ldap() { _mv_mod ldap "LDAP"; }

56
md5sums="6a6f501a1b2a45166b8ffd6df29204bb  apr-util-1.3.10.tar.bz2"