aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2019-04-01 09:18:05 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-04-01 09:20:16 +0000
commit58b84acd69e8ba6c670f46243e619cafc8847198 (patch)
tree79cfdc135479f8c3f195e0e457252cf47fa08e0f
parentfa59e345fddaceb64c29cab4c8dd82343d517ce3 (diff)
downloadaports-58b84acd69e8ba6c670f46243e619cafc8847198.tar.gz
aports-58b84acd69e8ba6c670f46243e619cafc8847198.tar.bz2
aports-58b84acd69e8ba6c670f46243e619cafc8847198.tar.xz
main/perl-lwp-mediatypes: upgrade to 6.04
Modernize APKBUILD, update source
-rw-r--r--main/perl-lwp-mediatypes/APKBUILD31
1 files changed, 20 insertions, 11 deletions
diff --git a/main/perl-lwp-mediatypes/APKBUILD b/main/perl-lwp-mediatypes/APKBUILD
index 174074fe9f..6d5eb4ee0b 100644
--- a/main/perl-lwp-mediatypes/APKBUILD
+++ b/main/perl-lwp-mediatypes/APKBUILD
@@ -1,38 +1,47 @@
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-lwp-mediatypes
-_realname=LWP-MediaTypes
-pkgver=6.02
-pkgrel=1
+_pkgname=LWP-MediaTypes
+pkgver=6.04
+pkgrel=0
pkgdesc="Perl module - guess media type for a file or a URL"
url="http://search.cpan.org/~gaas"
arch="noarch"
license="GPL PerlArtistic"
depends="perl"
makedepends="perl-dev"
+checkdepends="perl-test-fatal"
install=
replaces="perl-libwww"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_realname-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/LWP-MediaTypes-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
-builddir="$srcdir/$_realname-$pkgver"
+prepare() {
+ default_prepare
-build() {
cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
check() {
- cd "$builddir"
+ cd $builddir
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
- cd "$builddir"
+ cd $builddir
make DESTDIR="$pkgdir" install
- # creates file collision among perl modules
- find "$pkgdir" -name perllocal.pod -delete
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="b2ad33fb2c6dd7afaa9b8dd2ed6a15b2ecc35d13bcdf5297ce1632ea77406def0840a24c5213187707b665f28cc9bbea5774bfd1a4070d1f6192e904f707b94e LWP-MediaTypes-6.02.tar.gz"
+sha512sums="0610627ef3efdfde3c89bad273931c9cbde5c6da0bd782d59ce26dc4445cd538be9041d722f08206d96d69d5e3643b15150ef29b9e92e3968833f2ae1b6dc53f LWP-MediaTypes-6.04.tar.gz"