aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-11 11:53:43 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-13 09:08:07 +0000
commit5b4fc48d93187683fc3ee4479a8a59b2065e8b79 (patch)
tree25d55e9eaf55189a807b7033a21b2a673844163d
parentf76022b839c77e3c54a4a871a2c8ac5facd29e04 (diff)
downloadaports-5b4fc48d93187683fc3ee4479a8a59b2065e8b79.tar.gz
aports-5b4fc48d93187683fc3ee4479a8a59b2065e8b79.tar.bz2
aports-5b4fc48d93187683fc3ee4479a8a59b2065e8b79.tar.xz
main/perl-html-rewriteattributes: add missing make dependency and modernize
-rw-r--r--main/perl-html-rewriteattributes/APKBUILD27
1 files changed, 17 insertions, 10 deletions
diff --git a/main/perl-html-rewriteattributes/APKBUILD b/main/perl-html-rewriteattributes/APKBUILD
index 4db941eef9..e2eeae8bdc 100644
--- a/main/perl-html-rewriteattributes/APKBUILD
+++ b/main/perl-html-rewriteattributes/APKBUILD
@@ -4,35 +4,42 @@
pkgname=perl-html-rewriteattributes
_pkgreal=HTML-RewriteAttributes
pkgver=0.05
-pkgrel=0
-pkgdesc="concise attribute rewriting"
+pkgrel=1
+pkgdesc="Concise attribute rewriting"
url="http://search.cpan.org/dist/HTML-RewriteAttributes/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-html-tagset perl-uri perl-html-parser"
-cpanmakedepends=" "
+cpanmakedepends=""
depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+makedepends="perl-dev $cpanmakedepends perl-module-install"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TS/TSIBLEY/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ default_prepare
+
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- make && make test
+ 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
}