summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/perl-string-escape/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-string-escape/APKBUILD b/user/perl-string-escape/APKBUILD
new file mode 100644
index 000000000..33d612291
--- /dev/null
+++ b/user/perl-string-escape/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=perl-string-escape
+pkgver=2010.002
+pkgrel=0
+pkgdesc="Perl module for escaping strings"
+url="https://metacpan.org/pod/String::Escape"
+arch="noarch"
+license="Artistic-1.0-Perl"
+depends="perl"
+makedepends=""
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/E/EV/EVO/String-Escape-$pkgver.tar.gz"
+builddir="$srcdir/String-Escape-$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="668e196bbd95b4e9e5fc9ae3aebe0e7f1990362973bd027f2f3728f212786bc2104141ced3e024006b3ed22fa6345b968440029c98b87cbc299ac192221724c7 String-Escape-2010.002.tar.gz"