aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-getopt-long/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-getopt-long/APKBUILD')
-rw-r--r--main/perl-getopt-long/APKBUILD48
1 files changed, 29 insertions, 19 deletions
diff --git a/main/perl-getopt-long/APKBUILD b/main/perl-getopt-long/APKBUILD
index 808afab214..0d42427c0c 100644
--- a/main/perl-getopt-long/APKBUILD
+++ b/main/perl-getopt-long/APKBUILD
@@ -1,31 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-getopt-long
-_realname=Getopt-Long
-pkgver=2.38
-pkgrel=2
-pkgdesc="Extended processing of command line options"
-url="http://search.cpan.org/~jv/Getopt-Long-2.38/"
+_pkgreal=Getopt-Long
+pkgver=2.41
+pkgrel=0
+pkgdesc="Module to handle parsing command line options"
+url="http://search.cpan.org/dist/Getopt-Long/"
arch="noarch"
-license="Unknown"
-depends="perl"
-makedepends="perl-dev"
-install=
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/J/JV/JV/$_realname-$pkgver.tar.gz"
+source="http://search.cpan.org/CPAN/authors/id/J/JV/JV/$_pkgreal-$pkgver.tar.gz"
-build() {
- cd "$srcdir/$_realname-$pkgver"
+_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
+}
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
}
package() {
- cd "$srcdir/$_realname-$pkgver"
- make DESTDIR="$pkgdir" install
- # creates file collision among perl modules
- find "$pkgdir" -name perllocal.pod -delete
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="4d38c78300e79a7fde4700e88759c2b3 Getopt-Long-2.38.tar.gz"
+md5sums="714d040249efe344b813b90deb43bbea Getopt-Long-2.41.tar.gz"
+sha256sums="830736e3b28a0cdc222945a94ee26e6a8c7709b50312654aac552d0573bfc687 Getopt-Long-2.41.tar.gz"
+sha512sums="e9ec32b46223df9093b7d2a3e94795b483e4370945fe443ac185b43c6a208015e79e67dfad3df7b642c9b8739f7df223d765e6f1c92c1ba8ea5a4be41970ac1a Getopt-Long-2.41.tar.gz"