aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-exporter-lite/APKBUILD
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-03-23 00:42:14 +0000
committerRasmus Thomsen <oss@cogitri.dev>2020-03-23 09:47:46 +0000
commit3dfce151cca61e40995a097fbac40ee723d0f420 (patch)
tree0dfb45633b834986cf0e377aee0a9839db5e2eba /community/perl-exporter-lite/APKBUILD
parentcbe57bae985b540a730dd82d7d4360d8debe667b (diff)
downloadaports-3dfce151cca61e40995a097fbac40ee723d0f420.tar.gz
aports-3dfce151cca61e40995a097fbac40ee723d0f420.tar.bz2
aports-3dfce151cca61e40995a097fbac40ee723d0f420.tar.xz
community/perl-exporter-lite: move from testing and modernize
Diffstat (limited to 'community/perl-exporter-lite/APKBUILD')
-rw-r--r--community/perl-exporter-lite/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/perl-exporter-lite/APKBUILD b/community/perl-exporter-lite/APKBUILD
new file mode 100644
index 0000000000..6770b1db07
--- /dev/null
+++ b/community/perl-exporter-lite/APKBUILD
@@ -0,0 +1,35 @@
+# Automatically generated by apkbuild-cpan, template 3
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=perl-exporter-lite
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=Exporter-Lite
+pkgver=0.08
+pkgrel=3
+pkgdesc="Perl module for Exporter-Lite"
+url="https://metacpan.org/release/Exporter-Lite/"
+arch="noarch"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Exporter-Lite-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="8c6ff5a88c1b810d74156c5d84695cfde6f555e0fc663804123e2a96f5e2235a5adeebbf24b18301ed2c3fb57f76788ecfdf301b26263279e92a88a9143b8953 Exporter-Lite-0.08.tar.gz"