void-packages/srcpkgs/apr/template

35 lines
1.0 KiB
Plaintext
Raw Normal View History

# Template file for 'apr'
pkgname=apr
version=1.5.1
revision=1
build_style=gnu-configure
2014-02-18 10:03:14 +01:00
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/"
2011-07-04 12:11:44 +02:00
license="Apache-2.0"
distfiles="http://www.apache.org/dist/apr/apr-$version.tar.bz2"
checksum=e94abe431d4da48425fcccdb27b469bd0f8151488f82e5630a56f26590e198ac
2014-02-18 10:03:14 +01:00
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed -i "/LINK_PROG.*OBJECTS_gen_test_char/s|.*|\t${BUILD_CC} ${BUILD_CFLAGS} tools/gen_test_char.c -o tools/gen_test_char|" Makefile
2014-02-18 10:03:14 +01:00
fi
}
2013-07-19 09:15:51 +02:00
apr-devel_package() {
depends="libtool libuuid-devel apr>=${version}_${revision}"
2013-07-19 08:40:10 +02:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/bin
vmove usr/share
2013-04-19 08:20:17 +02:00
vmove "usr/lib/*.a"
2013-07-19 08:40:10 +02:00
vmove "usr/lib/*.so"
2013-04-19 08:20:17 +02:00
vmove "usr/lib/*.exp"
vmove usr/lib/pkgconfig
ln -sf /usr/bin/libtool ${PKGDESTDIR}/usr/share/apr-1/build/libtool
}
}