summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/perl-uri-escape/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/user/perl-uri-escape/APKBUILD b/user/perl-uri-escape/APKBUILD
new file mode 100644
index 000000000..96d44352e
--- /dev/null
+++ b/user/perl-uri-escape/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+pkgname=perl-uri-escape
+pkgver=1.72
+_realname=URI-$pkgver
+pkgrel=0
+pkgdesc="Percent-encode and percent-decode unsafe characters"
+url="http://search.cpan.org/dist/URI/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="perl-test-needs"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_realname.tar.gz"
+
+builddir="$srcdir"/$_realname
+
+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="804285c956efcd728569a8ca9c619ddc59d87ca686d1783f697dfee7da4d25721a565515a3e4ad39ff1e4a7239565d0e899ee88db95705804882ce43105f6186 URI-1.72.tar.gz"