diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-06-14 20:41:03 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-06-15 13:16:53 +0000 |
commit | 6c6c91e2674687f7a94144f4d1706973aab88441 (patch) | |
tree | a202119889b1968e326c04623587afd16fd5e0a3 | |
parent | 48427f5e557b25bf8cd1b490af6ec13a3a4fdc6e (diff) | |
download | aports-6c6c91e2674687f7a94144f4d1706973aab88441.tar.bz2 aports-6c6c91e2674687f7a94144f4d1706973aab88441.tar.xz |
main/perl-file-sharedir: upgrade to 1.106 and modernize
-rw-r--r-- | main/perl-file-sharedir/APKBUILD | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/main/perl-file-sharedir/APKBUILD b/main/perl-file-sharedir/APKBUILD index b18ec76dc0..9bfe7655cb 100644 --- a/main/perl-file-sharedir/APKBUILD +++ b/main/perl-file-sharedir/APKBUILD @@ -1,7 +1,8 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-file-sharedir -pkgver=1.104 +_pkgname=File-ShareDir +pkgver=1.106 pkgrel=0 pkgdesc="File::ShareDir perl module" url="http://search.cpan.org/dist/File-ShareDir/" @@ -9,31 +10,26 @@ arch="noarch" license="GPL-2.0 or Artistic" depends="perl perl-class-inspector" makedepends="perl-dev" -install="" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/File-ShareDir-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/$_pkgname-$pkgver.tar.gz" -_builddir="$srcdir"/File-ShareDir-$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 } -sha512sums="0fbe1a1b822e0de324fd05c7cc230a1022e74eb7ae9ec66281b57d2c4144a600f34395cfbfa08218b64a88cc2bbe3ab94abb6339cc65aef19a82191e1ba2ed52 File-ShareDir-1.104.tar.gz" +sha512sums="68935bf150b3c613af46bf783c12524cbe7eabc0363c06ea83959e7353beda822e403d42ab6ddfb679ab1c5ff95d1999c597ef7bfc5e8a3fae70273160ba4964 File-ShareDir-1.106.tar.gz" |