summaryrefslogtreecommitdiff
path: root/user/perl-b-hooks-endofscope/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-b-hooks-endofscope/APKBUILD')
-rw-r--r--user/perl-b-hooks-endofscope/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-b-hooks-endofscope/APKBUILD b/user/perl-b-hooks-endofscope/APKBUILD
new file mode 100644
index 000000000..0d9d641c2
--- /dev/null
+++ b/user/perl-b-hooks-endofscope/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-b-hooks-endofscope
+pkgver=0.24
+pkgrel=0
+pkgdesc="Execute Perl code after a scope finished compilation"
+url="https://metacpan.org/release/B-Hooks-EndOfScope"
+arch="noarch"
+license="Artistic-1.0-Perl"
+depends="perl-module-implementation perl-sub-exporter-progressive perl-sub-name
+ perl-variable-magic"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/B-Hooks-EndOfScope-$pkgver.tar.gz"
+builddir="$srcdir/B-Hooks-EndOfScope-$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="5c061a81a3fed88ad868a14a1f817f7952b2f0c9512408174354e0ecf7e3caa5d646054cf75efa8b8c558e6241a8dfebf9400e8826021bdb5cbdf3a00065b147 B-Hooks-EndOfScope-0.24.tar.gz"