summaryrefslogtreecommitdiff
path: root/user/perl-class-xsaccessor/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-class-xsaccessor/APKBUILD')
-rw-r--r--user/perl-class-xsaccessor/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-class-xsaccessor/APKBUILD b/user/perl-class-xsaccessor/APKBUILD
new file mode 100644
index 000000000..6ef87555a
--- /dev/null
+++ b/user/perl-class-xsaccessor/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=perl-class-xsaccessor
+pkgver=1.19
+pkgrel=0
+pkgdesc="Perl module to generate fast XS accessors without compilation"
+url="https://metacpan.org/release/Class-XSAccessor"
+arch="all"
+license="Artistic-1.0-Perl"
+depends=""
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/S/SM/SMUELLER/Class-XSAccessor-$pkgver.tar.gz"
+builddir="$srcdir/Class-XSAccessor-$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="58855bb2108b60cc90ae1d1c4d6a011da7bac2d063c7c953ff8610ae164ba60731a664f0fbddf148e1eabb60042913a17633a9c9a8936a23a59130b381bf63f8 Class-XSAccessor-1.19.tar.gz"