diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-01-23 15:03:01 +0200 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-24 08:48:17 +0000 |
commit | 75e3da45a212faf6387424af298d6217d3ad0bd5 (patch) | |
tree | 66b4b64bff56c9fc85124378c7965ddac1725b64 /main/perl-getopt-long | |
parent | fe6b86af3763d58fbc06fa009626c5dd8cf4c3c9 (diff) | |
download | aports-75e3da45a212faf6387424af298d6217d3ad0bd5.tar.bz2 aports-75e3da45a212faf6387424af298d6217d3ad0bd5.tar.xz |
main/perl-*: fix -doc, apkbuild cleanups
perl-carp
perl-digest-md5
perl-exporter
perl-getopt-long
perl-io
perl-mime-base64
perl-pathtools (+ add description)
perl-scalar-list-utils
perl-socket
perl-test-harness (+ move script to -utils subpackage)
perl-test-simple
Diffstat (limited to 'main/perl-getopt-long')
-rw-r--r-- | main/perl-getopt-long/APKBUILD | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/main/perl-getopt-long/APKBUILD b/main/perl-getopt-long/APKBUILD index ea28618f98..b2c27e5f94 100644 --- a/main/perl-getopt-long/APKBUILD +++ b/main/perl-getopt-long/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-getopt-long _pkgreal=Getopt-Long pkgver=2.49.1 -pkgrel=0 +pkgrel=1 pkgdesc="Module to handle parsing command line options" url="http://search.cpan.org/dist/Getopt-Long/" arch="noarch" @@ -15,27 +15,31 @@ depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/J/JV/JV/$_pkgreal-$pkgver.tar.gz" - -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + 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}'` + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make && make test } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } +doc() { + default_doc + replaces="perl-doc" +} + md5sums="bb7c92be20117be5d5043b07b6fd20a1 Getopt-Long-2.49.1.tar.gz" sha256sums="98fad4235509aa24608d9ef895b5c60fe2acd2bca70ebdf1acaf6824e17a882f Getopt-Long-2.49.1.tar.gz" sha512sums="3a28eabdc8847e10d82b20f12f59f3797d73ea15245aeaacd678f0b1111ddc024e91c9ca0cf3897116533fb35dc4592e029444dee931844ddbadf90cda375200 Getopt-Long-2.49.1.tar.gz" |