aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-data-uniqid
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-23 00:33:02 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-23 00:33:02 +0000
commit37539843c397679ac01c8f590d634db31f18be49 (patch)
tree8f8f2609981f394f39bf2650bc5b040253680bd7 /community/perl-data-uniqid
parent12a77edce72a5e943496a92ac1ec04a92740035a (diff)
downloadaports-37539843c397679ac01c8f590d634db31f18be49.tar.bz2
aports-37539843c397679ac01c8f590d634db31f18be49.tar.xz
community/perl-data-uniqid: modernize and add check
Diffstat (limited to 'community/perl-data-uniqid')
-rw-r--r--community/perl-data-uniqid/APKBUILD25
1 files changed, 14 insertions, 11 deletions
diff --git a/community/perl-data-uniqid/APKBUILD b/community/perl-data-uniqid/APKBUILD
index 06240f68d2..34bd827f18 100644
--- a/community/perl-data-uniqid/APKBUILD
+++ b/community/perl-data-uniqid/APKBUILD
@@ -2,8 +2,8 @@
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=perl-data-uniqid
pkgver=0.12
-_realname=Data-Uniqid-$pkgver
-pkgrel=0
+_realname=Data-Uniqid
+pkgrel=1
pkgdesc="Perl extension for simple generation of unique id's"
url="http://search.cpan.org/dist/Data-Uniqid/"
arch="noarch"
@@ -13,22 +13,25 @@ cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/M/MW/MWX/$_realname.tar.gz"
+source="http://search.cpan.org/CPAN/authors/id/M/MW/MWX/$_realname-$pkgver.tar.gz"
-_builddir="$srcdir"/$_realname
+builddir="$srcdir/$_realname-$pkgver"
build() {
- cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ 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="6bab3b5da09fedfdf60ce2629a7367db Data-Uniqid-0.12.tar.gz"
-sha256sums="b6919ba49b9fe98bfdf3e8accae7b9b7f78dc9e71ebbd0b7fef7a45d99324ccb Data-Uniqid-0.12.tar.gz"
sha512sums="fd12aae4a810fda88dd0f8296e73760d8d62357cb5ebc675a4b2804d9eee93ebfa01942c7057ad9092e80331504f2a38a3c8a576ccb630de10f5e563752ed6e3 Data-Uniqid-0.12.tar.gz"