aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-filesys-notify-simple
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-13 13:38:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-13 15:48:29 +0000
commit627e091fd6b7b3c4d6adca2899933948ce1016e1 (patch)
tree0f8f039e4cc79df7bdd6addd923953221dfed405 /main/perl-filesys-notify-simple
parent605d27da542fd6cb239e4f3f078002c9ce824fec (diff)
downloadaports-627e091fd6b7b3c4d6adca2899933948ce1016e1.tar.bz2
aports-627e091fd6b7b3c4d6adca2899933948ce1016e1.tar.xz
main/perl-filesys-notify-simple: upgrade to 0.12 and modernize
Diffstat (limited to 'main/perl-filesys-notify-simple')
-rw-r--r--main/perl-filesys-notify-simple/APKBUILD32
1 files changed, 14 insertions, 18 deletions
diff --git a/main/perl-filesys-notify-simple/APKBUILD b/main/perl-filesys-notify-simple/APKBUILD
index 6b50802b26..ff47f8468d 100644
--- a/main/perl-filesys-notify-simple/APKBUILD
+++ b/main/perl-filesys-notify-simple/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-filesys-notify-simple
-pkgver=0.07
+pkgver=0.12
pkgrel=0
pkgdesc="Filesys::Notify::Simple perl module"
url="http://search.cpan.org/dist/Filesys-Notify-Simple/"
@@ -9,31 +9,27 @@ arch="noarch"
license="GPLv2 or Artistic"
depends="perl"
makedepends="perl-dev"
-install=""
+checkdepends="perl-test-sharedfork"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Filesys-Notify-Simple-$pkgver.tar.gz"
-_builddir="$srcdir"/Filesys-Notify-Simple-$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/Filesys-Notify-Simple-$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="3bb256eed45ef88dc19886990bf28fdbd64a36a32e14b042c7c7c7b3784665200a7285e07ba1715c9e6d86345ae4977281fe277cb2793110fde515f5fcad556f Filesys-Notify-Simple-0.07.tar.gz"
+sha512sums="3edb9a5087b82c87bea1b4092a3c7c264ec6f8da391052593e504b16392ea1a84771bbcbad21d623f727682cc6ab4474fe6a7e346c8bebe13f60d39e83594e2b Filesys-Notify-Simple-0.12.tar.gz"