diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-26 14:37:55 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-26 14:37:55 +0000 |
commit | a016c81857fc12b42219b028363eccfe359a28dd (patch) | |
tree | 879012db0aa123bb0187c4d4f2d5b28e6e69245b /community/perl-provide | |
parent | b1763cdd0b9c2093aa434ffe8f3aa85b9076b384 (diff) | |
download | aports-a016c81857fc12b42219b028363eccfe359a28dd.tar.bz2 aports-a016c81857fc12b42219b028363eccfe359a28dd.tar.xz |
community/perl-provide: moved from unmaintained
Diffstat (limited to 'community/perl-provide')
-rw-r--r-- | community/perl-provide/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/community/perl-provide/APKBUILD b/community/perl-provide/APKBUILD new file mode 100644 index 0000000000..03be8cce58 --- /dev/null +++ b/community/perl-provide/APKBUILD @@ -0,0 +1,40 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-provide +_pkgreal=provide +pkgver=0.03 +pkgrel=0 +pkgdesc="easily choose between different version-specific implementations" +url="http://search.cpan.org/dist/provide/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/B/BE/BELDEN/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="213587bbc758179d39c40285d83fe575 provide-0.03.tar.gz" +sha256sums="565c8a5e4b09e6724bf8a2df33a4364e98c05dd7d2835821457a2f787cfe2446 provide-0.03.tar.gz" +sha512sums="d16762c4c2ecc69619904d9eb81cbc75dc253f85bf2c52ec17d08b3fa64ebf1897521e9d60cb541884e9ccf0fe0b51420eb57d4b09daabeda29ea00d8a90f6f1 provide-0.03.tar.gz" |