summaryrefslogtreecommitdiff
path: root/user/perl-uri-escape/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-27 22:18:07 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-27 22:18:07 -0500
commitfce34ccccef5bc190cbe57a8df7cdef9583e26c0 (patch)
tree0780f80387ed842474d68ab4c640ce5084578bce /user/perl-uri-escape/APKBUILD
parent07aa9588f57c6a480ffb134566838ab17361635a (diff)
downloadpackages-fce34ccccef5bc190cbe57a8df7cdef9583e26c0.tar.gz
packages-fce34ccccef5bc190cbe57a8df7cdef9583e26c0.tar.bz2
packages-fce34ccccef5bc190cbe57a8df7cdef9583e26c0.tar.xz
packages-fce34ccccef5bc190cbe57a8df7cdef9583e26c0.zip
user/perl-uri-escape: bring over from Alpine unmaintained/
Diffstat (limited to 'user/perl-uri-escape/APKBUILD')
-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"