diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/perl-sub-name/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-sub-name/APKBUILD b/user/perl-sub-name/APKBUILD new file mode 100644 index 000000000..656a7a7ee --- /dev/null +++ b/user/perl-sub-name/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-sub-name +pkgver=0.21 +pkgrel=0 +pkgdesc="Rename a Perl sub" +url="https://metacpan.org/release/Sub-Name" +arch="all" +license="Artistic-1.0-Perl" +depends="" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Sub-Name-$pkgver.tar.gz" +builddir="$srcdir/Sub-Name-$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="94be57b569f6c434ec3ef4fdff1a9d946067cf6c7ee58f716f4bc188764ee103f9a2579ee0ddf4068ec6889c186d9d447d8252a5dd2a0e882719239ac1102294 Sub-Name-0.21.tar.gz" |