diff options
-rw-r--r-- | main/perl-xml-rss/APKBUILD | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/main/perl-xml-rss/APKBUILD b/main/perl-xml-rss/APKBUILD index 4c442658e3..e864d427bd 100644 --- a/main/perl-xml-rss/APKBUILD +++ b/main/perl-xml-rss/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-xml-rss _pkgreal=XML-RSS pkgver=1.59 -pkgrel=0 +pkgrel=1 pkgdesc="creates and updates RSS files" url="http://search.cpan.org/dist/XML-RSS/" arch="noarch" @@ -16,23 +16,23 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" -prepare() { - cd "$_builddir" +build() { + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - perl Build.PL installdirs=vendor || return 1 + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make } -build() { - cd "$_builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - ./Build && ./Build test +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - ./Build install destdir="$pkgdir" || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |