aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-http-message/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-http-message/APKBUILD')
-rw-r--r--main/perl-http-message/APKBUILD21
1 files changed, 12 insertions, 9 deletions
diff --git a/main/perl-http-message/APKBUILD b/main/perl-http-message/APKBUILD
index 603106053f..e7ecfc9060 100644
--- a/main/perl-http-message/APKBUILD
+++ b/main/perl-http-message/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-http-message
_pkgreal=HTTP-Message
pkgver=6.11
-pkgrel=0
+pkgrel=1
pkgdesc="HTTP style messages"
url="http://search.cpan.org/dist/HTTP-Message/"
arch="noarch"
@@ -16,26 +16,29 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ 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
}
-md5sums="4ed7add10daea3ab30abfeab6d03872f HTTP-Message-6.11.tar.gz"
-sha256sums="e7b368077ae6a188d99920411d8f52a8e5acfb39574d4f5c24f46fd22533d81b HTTP-Message-6.11.tar.gz"
sha512sums="6fc923b7dbdcce7269a03700a8776fe85522287f409fffac40936a77d951a70d957642eda8d2a0367af60d176c89654b3bb6249c23f458c0cd9d44031e6b6dc2 HTTP-Message-6.11.tar.gz"