aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-http-cookiejar/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2019-04-01 13:33:26 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2019-04-01 13:33:26 +0000
commita0163acc2565eb648eb40e09a11a7bd18114be57 (patch)
tree5ce70e88199c3cf5b8943990e61fdde9ba37e2be /community/perl-http-cookiejar/APKBUILD
parent03791f0b58b82299a7d15bd712b27c8b1909f953 (diff)
downloadaports-a0163acc2565eb648eb40e09a11a7bd18114be57.tar.bz2
aports-a0163acc2565eb648eb40e09a11a7bd18114be57.tar.xz
community/perl-http-cookiejar: new aport
Needs to be in community since is a new dependency of perl-dancer which is in community
Diffstat (limited to 'community/perl-http-cookiejar/APKBUILD')
-rw-r--r--community/perl-http-cookiejar/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/community/perl-http-cookiejar/APKBUILD b/community/perl-http-cookiejar/APKBUILD
new file mode 100644
index 0000000000..5f6bded879
--- /dev/null
+++ b/community/perl-http-cookiejar/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-http-cookiejar
+_pkgreal=HTTP-CookieJar
+pkgver=0.008
+pkgrel=0
+pkgdesc="A minimalist HTTP user agent cookie jar"
+url="http://search.cpan.org/dist/HTTP-CookieJar"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-http-date perl-time-local"
+cpanmakedepends=""
+cpancheckdepends="perl-test-deep perl-test-requires"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="6e85c22084ba2959b385f4cd706b2b937fcdb68f219ee03ccdd69dd2a01ff34b72bf7f442e414e3da43199fc43624b781af0c7599f856dc580a5d0a7742c6aff HTTP-CookieJar-0.008.tar.gz"