diff options
Diffstat (limited to 'user/perl-variable-magic/APKBUILD')
-rw-r--r-- | user/perl-variable-magic/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-variable-magic/APKBUILD b/user/perl-variable-magic/APKBUILD new file mode 100644 index 000000000..605369668 --- /dev/null +++ b/user/perl-variable-magic/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-variable-magic +pkgver=0.62 +pkgrel=0 +pkgdesc="Associate user-defined magic to variables from Perl" +url="https://metacpan.org/release/Variable-Magic" +arch="all" +license="Artistic-1.0-Perl" +depends="" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/V/VP/VPIT/Variable-Magic-$pkgver.tar.gz" +builddir="$srcdir/Variable-Magic-$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="fdaad8ab1a16a4723e30a155086f7f9ecad60b021b0ca5d449a0bc001b858a53e2857cfdc3fc4e3dcc28e2f59a14f3531afd93e3f71fda3b8fcaa8bc50d0c380 Variable-Magic-0.62.tar.gz" |