aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-11-22 22:16:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-22 22:16:46 +0000
commit3203ab3332b63ed5ab432420cb6897ddacfd729b (patch)
treed045a9908d30879fb1dd45626b1bcf4dd84a0e16
parent580bff76c129170dd6484e3eb893d285fc5c8a24 (diff)
downloadaports-3203ab3332b63ed5ab432420cb6897ddacfd729b.tar.gz
aports-3203ab3332b63ed5ab432420cb6897ddacfd729b.tar.bz2
aports-3203ab3332b63ed5ab432420cb6897ddacfd729b.tar.xz
main/perl-xml-rss: modernize
-rw-r--r--main/perl-xml-rss/APKBUILD22
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
}