summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-06-23 04:07:47 -0500
committerKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-06-23 04:11:14 -0500
commita9116380a4eba904059d52667f311bbaa5620bc5 (patch)
tree7f40bb738ef5fef659219756daac1a8a59453d96
parent3ed02e4b1dd04ba095752e45f71f045f36a8acfc (diff)
downloadpackages-a9116380a4eba904059d52667f311bbaa5620bc5.tar.gz
packages-a9116380a4eba904059d52667f311bbaa5620bc5.tar.bz2
packages-a9116380a4eba904059d52667f311bbaa5620bc5.tar.xz
packages-a9116380a4eba904059d52667f311bbaa5620bc5.zip
user/perl-uri: new package, replaces perl-uri-escape
-rw-r--r--user/perl-uri/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/user/perl-uri/APKBUILD b/user/perl-uri/APKBUILD
new file mode 100644
index 000000000..e5585c917
--- /dev/null
+++ b/user/perl-uri/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=perl-uri
+pkgver=1.74
+pkgrel=0
+pkgdesc="Perl library for URI manipulation"
+url="https://metacpan.org/pod/URI"
+arch="noarch"
+license="GPL-1.0+ OR Artistic-1.0"
+depends="perl"
+makedepends="$depends"
+checkdepends="perl-test-needs"
+install=""
+subpackages="$pkgname-doc"
+provides="perl-uri-escape"
+source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/URI-$pkgver.tar.gz"
+sha512sums="b537bd09c355989a2bb1919e2c228cf189e57f993add4246fa482d8ee5ec814266c6fb3229befce2f294456ee784a819d9a54013c43a2ad41b5d8914fabf046b URI-1.74.tar.gz"
+builddir="$srcdir/URI-$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
+}
+