summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD58
2 files changed, 30 insertions, 40 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 011fe91702c..a19df72a132 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
pkgbase = perl-string-rewriteprefix
pkgdesc = rewrite strings based on a set of known prefixes
- pkgver = 0.007
+ pkgver = 0.008
pkgrel = 1
url = http://search.cpan.org/dist/String-RewritePrefix
arch = any
- license = PerlArtistic
license = GPL
- depends = perl-sub-exporter>=0.972
+ license = PerlArtistic
+ depends = perl
+ depends = perl-sub-exporter
options = !emptydirs
- source = http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/String-RewritePrefix-0.007.tar.gz
- md5sums = 7135a69bd8cf74cf17dba857b2372d16
- sha512sums = c5f2eb6c7661809b4783378a4a33445dfd91fea22cd0a11c9e8d42683879fd6f95c465f7902db2573d5939dc18b250c1fd787d63e3c8a2e15febfd2c8fbd5a10
+ source = http://cpan.perl.org/modules/by-module/String/String-RewritePrefix-0.008.tar.gz
+ sha256sums = e45a31d6914e8f5fc722ef48d8819400dafc02105e0c61414aabbf01bce208eb
pkgname = perl-string-rewriteprefix
diff --git a/PKGBUILD b/PKGBUILD
index 6a3fb533b87..22836c1d6ad 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,49 +1,39 @@
-# Contributor: chimeracoder <dev@chimeracoder.net>
-# Generator : CPANPLUS::Dist::Arch 1.29
+# Maintainer: Jimmy Xu <me at jimmyxu dot org>
+# Contributor: chimeracoder <dev at chimeracoder dot net>
-pkgname='perl-string-rewriteprefix'
-pkgver='0.007'
-pkgrel='1'
+_perlmod='String-RewritePrefix'
+_modnamespace=String
+pkgname=perl-string-rewriteprefix
+pkgver=0.008
+pkgrel=1
pkgdesc="rewrite strings based on a set of known prefixes"
-arch=('any')
-license=('PerlArtistic' 'GPL')
+arch=("any")
+url="http://search.cpan.org/dist/$_perlmod"
+license=('GPL' 'PerlArtistic')
+depends=('perl' 'perl-sub-exporter')
options=('!emptydirs')
-depends=('perl-sub-exporter>=0.972')
-makedepends=()
-url='http://search.cpan.org/dist/String-RewritePrefix'
-source=('http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/String-RewritePrefix-0.007.tar.gz')
-md5sums=('7135a69bd8cf74cf17dba857b2372d16')
-sha512sums=('c5f2eb6c7661809b4783378a4a33445dfd91fea22cd0a11c9e8d42683879fd6f95c465f7902db2573d5939dc18b250c1fd787d63e3c8a2e15febfd2c8fbd5a10')
-_distdir="String-RewritePrefix-0.007"
+source=("http://cpan.perl.org/modules/by-module/$_modnamespace/$_perlmod-$pkgver.tar.gz")
+sha256sums=('e45a31d6914e8f5fc722ef48d8819400dafc02105e0c61414aabbf01bce208eb')
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 "$srcdir/$_perlmod-$pkgver"
- cd "$srcdir/$_distdir"
- /usr/bin/perl Makefile.PL
- make
- )
+ # Install module in vendor directories.
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
}
check() {
- cd "$srcdir/$_distdir"
- ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
- make test
- )
+ cd "$srcdir/$_perlmod-$pkgver"
+
+ # Install module in vendor directories.
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make test
}
package() {
- cd "$srcdir/$_distdir"
- make install
- find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+ cd "$srcdir/$_perlmod-$pkgver"
+ make install DESTDIR="$pkgdir/"
}
-# Local Variables:
-# mode: shell-script
-# sh-basic-offset: 2
-# End:
# vim:set ts=2 sw=2 et: