aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-07-27 16:45:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-08-16 20:35:08 +0000
commit6b4742b629bd7b2971c69a5887bce5077d469706 (patch)
treeabc0bada41d0fba2c1addb6349cfb3a5c252b683 /main
parent25ef8b27cfedb27b5be776c7fcc0765f9ca20573 (diff)
downloadaports-6b4742b629bd7b2971c69a5887bce5077d469706.tar.bz2
aports-6b4742b629bd7b2971c69a5887bce5077d469706.tar.xz
main/perl-regexp-common: upgrade to 2017060201 and modernize
Diffstat (limited to 'main')
-rw-r--r--main/perl-regexp-common/APKBUILD30
1 files changed, 16 insertions, 14 deletions
diff --git a/main/perl-regexp-common/APKBUILD b/main/perl-regexp-common/APKBUILD
index 24f38cb164..e40049477f 100644
--- a/main/perl-regexp-common/APKBUILD
+++ b/main/perl-regexp-common/APKBUILD
@@ -3,39 +3,41 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-regexp-common
_pkgreal=Regexp-Common
-pkgver=2016010801
+pkgver=2017060201
pkgrel=0
pkgdesc="Provide commonly requested regular expressions"
url="http://search.cpan.org/dist/Regexp-Common/"
arch="noarch"
license="MIT"
-cpandepends=""
-cpanmakedepends=" "
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AB/ABIGAIL/$_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
}
-md5sums="a7a86d2d4ec05b77898823f7b36ff59e Regexp-Common-2016010801.tar.gz"
-sha256sums="65558ad12b5f6250c483b5980e8533048c46912d6d69c76150f8f95a5b8eb1c4 Regexp-Common-2016010801.tar.gz"
-sha512sums="c45f43ba87b320ebf1aae3bf46e8ba7233bed26d7da13e7daf76eb11af95bd05b61811a0de76679702dc24e1e464589273e36d3dbbc0abf8d1ec0f984983643f Regexp-Common-2016010801.tar.gz"
+sha512sums="fd046d775214bdca42f868557559595360b069121a75fc119f45e064091000968d9d84154f8a0f06072ecff169dccecf68be58f99a7196932fcb4ffcbd678608 Regexp-Common-2017060201.tar.gz"