aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-data-uuid/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2019-03-06 14:57:41 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-03-06 14:59:04 +0000
commit5729748f91f1f6bc976e94518a6a78428899c2e6 (patch)
treecefaa4cc98ddcc5194b82cf9271574533506c1c9 /main/perl-data-uuid/APKBUILD
parenta30fa52b6ec5fb5457a2bdc8eee3475fc2732b6b (diff)
downloadaports-5729748f91f1f6bc976e94518a6a78428899c2e6.tar.bz2
aports-5729748f91f1f6bc976e94518a6a78428899c2e6.tar.xz
main/perl-data-uuid: upgrade to 1.224
Modernize APKBUILD, add check()
Diffstat (limited to 'main/perl-data-uuid/APKBUILD')
-rw-r--r--main/perl-data-uuid/APKBUILD24
1 files changed, 13 insertions, 11 deletions
diff --git a/main/perl-data-uuid/APKBUILD b/main/perl-data-uuid/APKBUILD
index 4858ebbef2..3050589ebd 100644
--- a/main/perl-data-uuid/APKBUILD
+++ b/main/perl-data-uuid/APKBUILD
@@ -3,8 +3,8 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-data-uuid
_pkgreal=Data-UUID
-pkgver=1.221
-pkgrel=1
+pkgver=1.224
+pkgrel=0
pkgdesc="Globally/Universally Unique Identifiers (GUIDs/UUIDs)"
url="http://search.cpan.org/dist/Data-UUID/"
arch="all"
@@ -15,27 +15,29 @@ depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"
-
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ default_prepare
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
}
+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="7619929e8fe205a7fb83bc1c29ecbf99 Data-UUID-1.221.tar.gz"
-sha256sums="3cc7b2a3a7b74b45a059e013f7fd878078500ea4b7269036f84556b022078667 Data-UUID-1.221.tar.gz"
-sha512sums="fa40219890f9adeb486a7ff636603d8695d81765ee858e396130100aaba96b524d80eef76e0c06eac2086fe3bb2d26114d94459466d29ddc82a7a7fcb2f5adac Data-UUID-1.221.tar.gz"
+sha512sums="897ab26e83600214110167b86fc63848281b7bdf3818dcfedb713bf2eb64a06c48cc7cee43bfa4130c6fdb912fb77863bd31ffe08c95ec85e6660a9b369b7970 Data-UUID-1.224.tar.gz"