aboutsummaryrefslogtreecommitdiffstats
path: root/testing/apache2-mod-perl/APKBUILD
blob: ef6a3381560bcc4564f91dc754b2f290720dda22 (plain) (blame)
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
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=apache2-mod-perl
_pkgreal=mod_perl
pkgver=2.0.11
pkgrel=0
pkgdesc="Perl Module for Apache2"
url="https://perl.apache.org/"
arch="all"
license="Apache-2.0"
depends="apache2"
depends_dev="$pkgname"
makedepends="apache2-dev perl-dev perl-linux-pid apr-dev apr-util-dev"
options="!check" # fails to start test server
subpackages="$pkgname-dbg $pkgname-doc $pkgname-dev"
source="https://www-eu.apache.org/dist/perl/$_pkgreal-$pkgver.tar.gz
	$pkgname.conf"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	perl Makefile.PL \
		INSTALLDIRS=vendor \
		MP_APXS=/usr/bin/apxs
	make
}

check() {
	make test
}


package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
	install -Dm644 "$srcdir"/$pkgname.conf \
		"$pkgdir"/etc/apache2/conf.d/$_pkgreal.conf
}

dev() {
	default_dev

	mv "$pkgdir"/usr/bin "$subpkgdir"/usr

	mkdir -p "$subpkgdir"/usr/lib/perl5/vendor_perl/auto/Apache2
	mv "$pkgdir"/usr/lib/perl5/vendor_perl/auto/Apache2/Build \
		"$pkgdir"/usr/lib/perl5/vendor_perl/auto/Apache2/typemap \
		"$subpkgdir"/usr/lib/perl5/vendor_perl/auto/Apache2
}

sha512sums="f232b215ccb9217f69ccced8a037470e5975900b9a6fcc5a2e4674e6559d21f026547c1b97c48109352043946dc22539dd38004759be16ad5cfcb3a96973dfdf  mod_perl-2.0.11.tar.gz
15a430ce597e370997a08d6aa1b5e55d4fa723ecac031fe39906c8cc767b90d5bf63e3026dfaa8b10ae8b09a17832f4f07cb8b2fdcd6c9ef427edfaf4e8a48b0  apache2-mod-perl.conf"