summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/perl-http-cookies/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/system/perl-http-cookies/APKBUILD b/system/perl-http-cookies/APKBUILD
new file mode 100644
index 000000000..dd2031356
--- /dev/null
+++ b/system/perl-http-cookies/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-http-cookies
+_pkgreal=HTTP-Cookies
+pkgver=6.04
+pkgrel=1
+pkgdesc="Perl HTTP cookie jars"
+url="http://search.cpan.org/dist/HTTP-Cookies/"
+arch="noarch"
+license="GPL-2.0-only or Artistic-1.0-Perl"
+depends="perl perl-http-date perl-http-message"
+makedepends="perl-dev"
+replaces="perl-libwww"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/O/OA/OALDERS/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="e8b24b96e6630f1238e828edfbf7074fb9186a391fd1d129fb65a82748a4cf7d71669fa658c31957560a6faac3e638c8dc7aa3182acaa6fd14f0d56f3968f5e4 HTTP-Cookies-6.04.tar.gz"