diff options
Diffstat (limited to 'user/perl-lib-relative')
-rw-r--r-- | user/perl-lib-relative/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-lib-relative/APKBUILD b/user/perl-lib-relative/APKBUILD new file mode 100644 index 000000000..daeb17687 --- /dev/null +++ b/user/perl-lib-relative/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-lib-relative +pkgver=0.002 +pkgrel=0 +pkgdesc="Add paths relative to the current file to Perl @INC" +url="https://metacpan.org/release/lib-relative" +arch="noarch" +license="Artistic-2.0" +depends="" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/D/DB/DBOOK/lib-relative-$pkgver.tar.gz" +builddir="$srcdir/lib-relative-$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="ebe552fbc4967dd8615e2a1ecde69000358b3909095c66b557a6dd68c1a4744ca586dc91d2cf1b679a57ef981ec79a4689ba9c3f846393f4f48e528e85c326b0 lib-relative-0.002.tar.gz" |