void-packages/srcpkgs/apr/template

35 lines
925 B
Plaintext

# Template file for 'apr'
pkgname=apr
version=1.5.0
revision=1
build_style=gnu-configure
configure_args="--with-devrandom=/dev/urandom --with-installbuilddir=/usr/share/apr-1/build"
makedepends="libuuid-devel"
short_desc="Apache Portable Runtime Library"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://apr.apache.org/"
license="Apache-2.0"
distfiles="http://www.apache.org/dist/apr/apr-$version.tar.bz2"
checksum=17287d36a5917e27281e60d47e7b147bd5ddcd1ca832702c2318f5e0724f1221
pre_build() {
if [ "$CROSS_BUILD" ]; then
make tools/gen_test_char
${BUILD_CC} ${BUILD_CFLAGS} tools/gen_test_char.c -o tools/gen_test_char
fi
}
apr-devel_package() {
depends="libuuid-devel apr>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/bin
vmove usr/share
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove "usr/lib/*.exp"
vmove usr/lib/pkgconfig
}
}