aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-apache-session-browseable/APKBUILD
blob: d17313e65275e26b799d21fbdcf7d6283f3b6630 (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
# Maintainer: Xavier Guimard <x.guimard@free.fr>
pkgname=perl-apache-session-browseable
_pkgreal=Apache-Session-Browseable
pkgver=1.1
pkgrel=0
pkgdesc="An implementation of Apache::Session"
url="https://metacpan.org/pod/Apache::Session::LDAP"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-apache-session"
cpanmakedepends="perl-module-build-tiny perl-dbd-sqlite perl-dbi"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/C/CO/COUDOT/Apache-Session-Browseable-1.1.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Build.PL --installdirs vendor
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build && ./Build test
}

package() {
	cd "$_builddir"
	./Build install --destdir "$pkgdir" || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="49be2eb67e029c78344149ab20815eec  Apache-Session-Browseable-1.1.tar.gz"
sha256sums="d71924fe9b10bec196f680008fb94451b59348a6ff64e04d12c2b8ef14a178e3  Apache-Session-Browseable-1.1.tar.gz"
sha512sums="0b5cca3963179127bb988cfa4c8dd1db58256285a1b1120b99b2688aa5dbbad3e2d92c3d70acccf66d3c83ae232158978dbdbfb72d158c6af597dbbaa754c279  Apache-Session-Browseable-1.1.tar.gz"