Commit 627e091f authored by Roberto Oliveira's avatar Roberto Oliveira Committed by Natanael Copa

main/perl-filesys-notify-simple: upgrade to 0.12 and modernize

parent 605d27da
# 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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment