diff options
author | J0WI <J0WI@users.noreply.github.com> | 2018-10-20 19:14:13 +0200 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-02-08 08:41:10 +0000 |
commit | 8ce6a205ff92427784b9c822c5229a6dc7c1e093 (patch) | |
tree | 20c93d9e3963ce9116ca7d0217b05702b3e54509 /main/perl-devel-checkbin/APKBUILD | |
parent | 60eb89d6a116718372f0c795c86b6abde053db18 (diff) | |
download | aports-8ce6a205ff92427784b9c822c5229a6dc7c1e093.tar.bz2 aports-8ce6a205ff92427784b9c822c5229a6dc7c1e093.tar.xz |
main/perl-devel-checkbin: modernize and upgrade to 0.4
Diffstat (limited to 'main/perl-devel-checkbin/APKBUILD')
-rw-r--r-- | main/perl-devel-checkbin/APKBUILD | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/main/perl-devel-checkbin/APKBUILD b/main/perl-devel-checkbin/APKBUILD index 5a48720a30..6412a1c269 100644 --- a/main/perl-devel-checkbin/APKBUILD +++ b/main/perl-devel-checkbin/APKBUILD @@ -2,10 +2,10 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-devel-checkbin _pkgreal=Devel-CheckBin -pkgver=0.02 +pkgver=0.04 pkgrel=0 pkgdesc="check that a command is available" -url="http://search.cpan.org/dist/Devel-CheckBin/" +url="https://search.cpan.org/dist/Devel-CheckBin/" arch="noarch" license="GPL PerlArtistic" cpandepends="" @@ -13,28 +13,31 @@ cpanmakedepends=" " depends="$cpandepends" makedepends="perl-dev $cpanmakedepends perl-module-build" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/$_pkgreal-$pkgver.tar.gz" +source="https://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/$_pkgreal-$pkgver.tar.gz" _builddir="$srcdir/$_pkgreal-$pkgver" prepare() { cd "$_builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - perl Build.PL installdirs=vendor || return 1 + perl Makefile.PL installdirs=vendor } build() { cd "$_builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - ./Build && ./Build test + make +} + +check() { + cd "$_builddir" + make test } package() { cd "$_builddir" - ./Build install destdir="$pkgdir" || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="aaa02a1262bc3eb3a7e5566590cb7814 Devel-CheckBin-0.02.tar.gz" -sha256sums="f5643d4a11eaf6309137a377b907f0e25d9d966699c1144c950e789954d5e13c Devel-CheckBin-0.02.tar.gz" -sha512sums="ba99b0e8177e284258caed44ec426b9eebc2afd621568d65617bd167f6a90662624ce43f083e3c4edffd1404da92220841a65b3de554a0fcaa47de53770d5d79 Devel-CheckBin-0.02.tar.gz" +sha512sums="7b28092fa2e6309ddc09976dcfadabbad9be678352c5b97a7938bf7e73944454e5c3c198aaf1a39939f24544e436ec4323925e77fa91e8d92e3986702c840f44 Devel-CheckBin-0.04.tar.gz" |