# $Id: PKGBUILD 3093 2009-09-26 21:38:20Z spupykin $ # Maintainer: Sergej Pupykin # Maintainer: Tom K pkgname=perl-libapreq2 pkgver=2.12 pkgrel=4 pkgdesc="A safe, standards-compliant, high-performance library used for parsing HTTP cookies, query-strings and POST data." arch=('i686' 'x86_64') url="http://search.cpan.org/dist/libapreq2" depends=('mod_perl' 'apr-util') makedepends=('perl-extutils-xsbuilder' 'perl-version') license=("GPL") options=('!libtool' '!makeflags') source=(http://www.cpan.org/authors/id/J/JO/JOESUF/libapreq2-$pkgver.tar.gz) md5sums=('76e2acde0d82246dea6f2565f3746eec') build() { cd $startdir/src/libapreq2-$pkgver PERL_MM_USE_DEFAULT=1 perl Makefile.PL --with-apache2-apxs=/usr/sbin/apxs || return 1 # ./configure --with-apache2-apxs=/usr/sbin/apxs make || return 1 make install DESTDIR=$startdir/pkg || return 1 sed -i "s#$srcdir#/usr/src#" $pkgdir/usr/bin/apreq2-config find $startdir/pkg -name '.packlist' -delete find $startdir/pkg -name '*.pod' -delete }