blob: e9de86e5442d298a62cf1356630dd03c63669cb9 (
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
48
49
50
51
52
53
54
55
56
|
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-libapreq2
_pkgreal=libapreq2
pkgver=2.13
pkgrel=1
pkgdesc="Perl module for libapreq2"
url="http://search.cpan.org/dist/libapreq2/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="apache2 perl"
subpackages="$pkgname-dev $pkgname-doc"
install="$pkgname.post-install"
makedepends="perl-extutils-xsbuilder perl-dev libtool apache2-dev apache2-mod-perl-dev expat-dev apr-util-dev"
source="http://search.cpan.org/CPAN/authors/id/I/IS/ISAAC/$_pkgreal-$pkgver.tar.gz
libapreq2-2.08-doc.patch
$pkgname.conf"
_builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd $_builddir
PERL_MM_USE_DEFAULT=1 perl Makefile.PL --with-apache2-apxs=/usr/bin/apxs \
--with-apache2-httpd=/usr/sbin/httpd
make || return 1
}
package() {
cd $_builddir
make DESTDIR="$pkgdir" INSTALLDIRS="vendor" install
install -Dm644 "$srcdir"/$pkgname.conf \
"$pkgdir"/etc/apache2/conf.d/perl-libapreq2.conf || return 1
find "$pkgdir" -name mod_apreq2.la -delete
find "$pkgdir" -name libapreq2.la -delete
}
md5sums="c11fb0861aa84dcc6cd0f0798b045eee libapreq2-2.13.tar.gz
4767fca9baf95b7bbf8b5bfd6bf461e7 libapreq2-2.08-doc.patch
90288cabd74c73d76be4e7a27a620f9b perl-libapreq2.conf"
sha256sums="5731e6833b32d88e4a5c690e45ddf20fcf969ce3da666c5627d775e92da0cf6e libapreq2-2.13.tar.gz
2ceee7ec3bf91a48b42094ce31ab1449b7193ea4c31aca0764ac98f13da5dccc libapreq2-2.08-doc.patch
fcf71bed348495e085ff2c4a429c3265b71636602e007e54be9484150dd7e92e perl-libapreq2.conf"
sha512sums="54553cb90c0d3f6fb34ff19364c5804976c4aff1bae551ae051fdd06f41695770f1e285c40e03dbd93ae738adc332f38f1a1994167598364071feaec833fdf05 libapreq2-2.13.tar.gz
dc889d7890d9059efdb3fcd4d6b1e485929b69c073ff6266b90f82e89efe5bdd633fd4dc09ccd4aac3f8816271c00dca69b39ffe4706baf7d3094404784cd766 libapreq2-2.08-doc.patch
e7fa4f3b51cbc6417369ba171ac0fb955ec0cd6d3575e07e7451ef2a8165d24ddbbcc3143a5c8106a757ecd7d4286a11a9ff87e27c1acff8abc48110fcb02e1f perl-libapreq2.conf"
|