aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/perl-file-sharedir/APKBUILD34
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"