35 lines
1020 B
Bash
35 lines
1020 B
Bash
# Template file for 'apr'
|
|
pkgname=apr
|
|
version=1.5.2
|
|
revision=3
|
|
build_style=gnu-configure
|
|
configure_args="--with-installbuilddir=/usr/share/apr-1/build"
|
|
makedepends="expat-devel libuuid-devel"
|
|
short_desc="Apache Portable Runtime Library"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://apr.apache.org/"
|
|
license="Apache-2.0"
|
|
distfiles="http://www.apache.org/dist/apr/apr-$version.tar.bz2"
|
|
checksum=7d03ed29c22a7152be45b8e50431063736df9e1daa1ddf93f6a547ba7a28f67a
|
|
|
|
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
|
|
fi
|
|
}
|
|
|
|
apr-devel_package() {
|
|
depends="libtool 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
|
|
ln -sf /usr/bin/libtool ${PKGDESTDIR}/usr/share/apr-1/build/libtool
|
|
}
|
|
}
|