aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-constant-generate
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-27 23:54:53 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-06-27 23:54:53 -0300
commitc983c3dabbe27ba93719ebf758e0005fb5e903b0 (patch)
tree81418ab39379265e2c921d57499701af5c855339 /testing/perl-constant-generate
parentd5c32f1bf1b1c36a7a1feabc47a8ba7d6ef548ce (diff)
downloadaports-c983c3dabbe27ba93719ebf758e0005fb5e903b0.tar.bz2
aports-c983c3dabbe27ba93719ebf758e0005fb5e903b0.tar.xz
testing/perl-constant-generate: fix url fix license
Diffstat (limited to 'testing/perl-constant-generate')
-rw-r--r--testing/perl-constant-generate/APKBUILD22
1 files changed, 8 insertions, 14 deletions
diff --git a/testing/perl-constant-generate/APKBUILD b/testing/perl-constant-generate/APKBUILD
index 74c0906fc2..23bd3820f6 100644
--- a/testing/perl-constant-generate/APKBUILD
+++ b/testing/perl-constant-generate/APKBUILD
@@ -4,35 +4,29 @@
pkgname=perl-constant-generate
_pkgreal=Constant-Generate
pkgver=0.17
-pkgrel=0
+pkgrel=1
pkgdesc="Common tasks for symbolic constants"
-url="http://search.cpan.org/dist/Constant-Generate/"
+url="https://metacpan.org/release/Constant-Generate"
arch="noarch"
-license="GPL PerlArtistic"
-cpandepends=""
-cpanmakedepends=" "
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MN/MNUNBERG/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ 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}'`
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}