aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-set-intspan
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-08-23 23:09:16 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-08-26 09:08:33 +0000
commitce6767bea49a788278c6bd1ffa5d2a89aa3709e5 (patch)
treee6ecba9e7cc0be55c814a831b25389bf9e19667d /main/perl-set-intspan
parent73c0a27338c80c7271de43ab53403984c5229c16 (diff)
downloadaports-ce6767bea49a788278c6bd1ffa5d2a89aa3709e5.tar.bz2
aports-ce6767bea49a788278c6bd1ffa5d2a89aa3709e5.tar.xz
main/perl-set-intspan: fix url fix license
Diffstat (limited to 'main/perl-set-intspan')
-rw-r--r--main/perl-set-intspan/APKBUILD33
1 files changed, 18 insertions, 15 deletions
diff --git a/main/perl-set-intspan/APKBUILD b/main/perl-set-intspan/APKBUILD
index a2d067f9d2..f29d32cdf3 100644
--- a/main/perl-set-intspan/APKBUILD
+++ b/main/perl-set-intspan/APKBUILD
@@ -4,35 +4,38 @@
pkgname=perl-set-intspan
_pkgreal=Set-IntSpan
pkgver=1.19
-pkgrel=0
+pkgrel=1
pkgdesc="Manages sets of integers, newsrc style"
-url="http://search.cpan.org/dist/Set-IntSpan/"
+url="https://metacpan.org/release/Set-IntSpan"
arch="noarch"
-license="GPL PerlArtistic"
-cpandepends=""
-cpanmakedepends=" "
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl"
+makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SW/SWMCD/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ cd "$builddir"
+ 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
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ 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
}