diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-12-29 15:18:18 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-12-29 15:18:18 +0000 |
commit | 80c088a88824a8b11c3b31b5d4bf3a00b0788371 (patch) | |
tree | 616e3697b83380cc2f358465afe5d566051a65dc /main | |
parent | fa4df9a0fd18cbeec20c152733f11e14fd7f4ca4 (diff) | |
download | aports-80c088a88824a8b11c3b31b5d4bf3a00b0788371.tar.bz2 aports-80c088a88824a8b11c3b31b5d4bf3a00b0788371.tar.xz |
main/perl-clone: modernize abuild
Diffstat (limited to 'main')
-rw-r--r-- | main/perl-clone/APKBUILD | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/main/perl-clone/APKBUILD b/main/perl-clone/APKBUILD index d9b4e493c7..51ba433e08 100644 --- a/main/perl-clone/APKBUILD +++ b/main/perl-clone/APKBUILD @@ -1,38 +1,34 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-clone +_pkgname=Clone pkgver=0.41 -pkgrel=0 +pkgrel=1 pkgdesc="Clone perl module" url="http://search.cpan.org/dist/Clone/" arch="all" license="GPL-2.0 or Artistic" depends="perl" makedepends="perl-dev" -install="" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/G/GA/GARU/Clone-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/G/GA/GARU/$_pkgname-$pkgver.tar.gz" -_builddir="$srcdir"/Clone-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/$_pkgname-$pkgver" build() { - cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make && make test || return 1 + 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 || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |