diff options
author | Timothy Legge <timlegge@gmail.com> | 2020-03-16 01:18:52 +0000 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-03-20 19:37:06 +0000 |
commit | 2e6b38ed21c2e650fac61f8140fc6f8041f7f67d (patch) | |
tree | 0c0f9c26daf74be5930a91b1ad320ba234842c33 /main/perl-data-uuid/APKBUILD | |
parent | 2f4034c38ba3c2aace44a0d64d307f6eae6560b5 (diff) | |
download | aports-2e6b38ed21c2e650fac61f8140fc6f8041f7f67d.tar.bz2 aports-2e6b38ed21c2e650fac61f8140fc6f8041f7f67d.tar.xz |
main/perl-data-uuid: Fix license and modernize APKBUILD
Diffstat (limited to 'main/perl-data-uuid/APKBUILD')
-rw-r--r-- | main/perl-data-uuid/APKBUILD | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/main/perl-data-uuid/APKBUILD b/main/perl-data-uuid/APKBUILD index bad484b07d..535b2ee4e6 100644 --- a/main/perl-data-uuid/APKBUILD +++ b/main/perl-data-uuid/APKBUILD @@ -1,41 +1,34 @@ -# Automatically generated by apkbuild-cpan, template 1 +# Automatically generated by apkbuild-cpan, template 3 # Contributor: Leonardo Arena <rnalrd@alpinelinux.org> # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=perl-data-uuid +#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Data-UUID pkgver=1.224 -pkgrel=3 +pkgrel=4 pkgdesc="Globally/Universally Unique Identifiers (GUIDs/UUIDs)" url="https://metacpan.org/release/Data-UUID/" arch="all" -license="BSD" -cpandepends="" -cpanmakedepends=" " -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +# Not indexed by spdx.org appears to be a variation Microsoft added +license="osf-1990(variant)" +depends="perl" +makedepends="perl-dev" subpackages="$pkgname-doc" -source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz" +source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Data-UUID-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" -prepare() { - default_prepare - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor -} - build() { - cd "$builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - make && make test + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor + make } check() { - cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { - cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |