summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-05-31 15:45:01 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-05-31 15:45:01 (GMT)
commit500b08f156a5ea329cb8667d3f8f7e0944ca307c (patch)
tree65ffe0413d4971b78aa9e1e982c686963eb470dd /abs
parent2a96195f58bdb514c9bf79f52dd0feb71c39b958 (diff)
downloadlinhes_pkgbuild-500b08f156a5ea329cb8667d3f8f7e0944ca307c.zip
linhes_pkgbuild-500b08f156a5ea329cb8667d3f8f7e0944ca307c.tar.gz
linhes_pkgbuild-500b08f156a5ea329cb8667d3f8f7e0944ca307c.tar.bz2
perl-lwp-mediatypes: rebuild
Diffstat (limited to 'abs')
-rw-r--r--abs/core/perl_modules/perl-lwp-mediatypes/PKGBUILD63
1 files changed, 22 insertions, 41 deletions
diff --git a/abs/core/perl_modules/perl-lwp-mediatypes/PKGBUILD b/abs/core/perl_modules/perl-lwp-mediatypes/PKGBUILD
index 625b2bd..f985f72 100644
--- a/abs/core/perl_modules/perl-lwp-mediatypes/PKGBUILD
+++ b/abs/core/perl_modules/perl-lwp-mediatypes/PKGBUILD
@@ -1,49 +1,30 @@
-# Packager: Justin "juster" Davis <jrcd83@gmail.com>
-# $Id: PKGBUILD 150744 2012-02-21 19:28:44Z juster $
+# $Id$
+# Maintainer: Eric BĂ©langer <eric@archlinux.org>
pkgname=perl-lwp-mediatypes
pkgver=6.02
-pkgrel=1
-pkgdesc="guess media type for a file or a URL"
-arch=(any)
-license=(PerlArtistic GPL)
-options=(!emptydirs)
-depends=('perl>=5.6.2')
-conflicts=('perl-libwww<6')
-url=https://metacpan.org/release/LWP-MediaTypes
-source=("http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/LWP-MediaTypes-${pkgver}.tar.gz")
-md5sums=(8c5f25fb64b974d22aff424476ba13c9)
-sha512sums=(b2ad33fb2c6dd7afaa9b8dd2ed6a15b2ecc35d13bcdf5297ce1632ea77406def0840a24c5213187707b665f28cc9bbea5774bfd1a4070d1f6192e904f707b94e)
-_distdir="${srcdir}/LWP-MediaTypes-${pkgver}"
+pkgrel=4
+pkgdesc="Guess the media type of a file or a URL"
+arch=('any')
+url="https://metacpan.org/release/LWP-MediaTypes"
+depends=('perl')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/LWP-MediaTypes-${pkgver}.tar.gz)
+sha1sums=('f56891f4e718a5f1f16f09ae37d32e454095cbed')
-build()
-(
- export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
- PERL_AUTOINSTALL=--skipdeps \
- PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
- PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
- MODULEBUILDRC=/dev/null
-
- cd "$_distdir"
- /usr/bin/perl Makefile.PL
- make
-)
+build() {
+ cd "${srcdir}/LWP-MediaTypes-${pkgver}"
+ perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
-check()
-(
- export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
- cd "$_distdir"
- make test
-)
+check() {
+ cd "${srcdir}/LWP-MediaTypes-${pkgver}"
+ make test
+}
package() {
- cd "$_distdir"
- make DESTDIR="$pkgdir" install
- find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+ cd "${srcdir}/LWP-MediaTypes-${pkgver}"
+ make DESTDIR="$pkgdir" install
}
-
-# Local Variables:
-# mode: shell-script
-# sh-basic-offset: 2
-# End:
-# vim:set ts=2 sw=2 et: