blob: 8f0c52e7867271286d296b2e5845e53a777df24e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-libapreq2
_pkgreal=libapreq2
pkgver=2.13
pkgrel=2
pkgdesc="Perl module for libapreq2"
url="http://search.cpan.org/dist/libapreq2/"
arch="all"
license="APACHE"
cpandepends="perl-extutils-xsbuilder perl-test-simple"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev apache2-dev apache2-mod-perl-dev m4 libtool automake autoconf $cpanmakedepends"
install="$pkgname.post-install"
subpackages="$pkgname-dev $pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/I/IS/ISAAC/$_pkgreal-$pkgver.tar.gz
$pkgname.conf"
_builddir="$srcdir/$_pkgreal-$pkgver"
build() {
cd "$_builddir"
PREFIX=/usr/lib perl Makefile.PL
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" INSTALLDIRS="vendor" install || return 1
install -Dm644 ../../$pkgname.conf "$pkgdir"/etc/apache2/conf.d/mod-perl-apreq2.conf || return 1
rm -f "$pkgdir"/usr/lib/*.la \
"$pkgdir"/usr/lib/apache2/*.la
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
doc() {
arch="noarch"
# doc files
_docs="LICENSE README"
for _doc in $_docs; do
install -Dm644 "$_builddir"/$_doc \
"$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1
done
}
md5sums="c11fb0861aa84dcc6cd0f0798b045eee libapreq2-2.13.tar.gz
90288cabd74c73d76be4e7a27a620f9b perl-libapreq2.conf"
|