summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-09-25 23:48:51 -0700
committerDan Theisen <djt@hxx.in>2018-09-25 23:48:51 -0700
commit391eac99cb9a660919991b3a57e74f1538946a7c (patch)
tree6252ee5884a0277f77521484b2dd41b9557c9659 /user
parent6ad43fafbbcd2ec5571eda6db0e7722278923539 (diff)
downloadpackages-391eac99cb9a660919991b3a57e74f1538946a7c.tar.gz
packages-391eac99cb9a660919991b3a57e74f1538946a7c.tar.bz2
packages-391eac99cb9a660919991b3a57e74f1538946a7c.tar.xz
packages-391eac99cb9a660919991b3a57e74f1538946a7c.zip
user/perl-common-sense: add package
Diffstat (limited to 'user')
-rw-r--r--user/perl-common-sense/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-common-sense/APKBUILD b/user/perl-common-sense/APKBUILD
new file mode 100644
index 000000000..8f159d0b3
--- /dev/null
+++ b/user/perl-common-sense/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Dan Theisen <djt@hxx.in>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-common-sense
+pkgver=3.74
+pkgrel=0
+pkgdesc="Implements some (in)sane defaults for Perl programs"
+url="https://metacpan.org/pod/common::sense"
+arch="noarch"
+license="Artistic-1.0-Perl AND GPL-2.0"
+depends="perl"
+makedepends="perl-dev"
+install=""
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/common-sense-$pkgver.tar.gz"
+builddir="$srcdir/common-sense-$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="658ad70a2d1bbd0b26f91c4ea5d69b4cc0b632ede9532b88282987002a5e280f0475d63ee846b7bd2d38ef82f2680e20c2093803e4b62a984750ed447f318d60 common-sense-3.74.tar.gz"