aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-url-encode
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-07-03 06:56:09 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-07-03 06:56:09 -0300
commitb19c3a24372b56f9b90adeb85a91ac4e057a4721 (patch)
tree049884543b1ef86cf873f1b2c4fa92bd357bf6a2 /testing/perl-url-encode
parenteb93452a58fd145e70182879d10461b9184a9143 (diff)
downloadaports-b19c3a24372b56f9b90adeb85a91ac4e057a4721.tar.bz2
aports-b19c3a24372b56f9b90adeb85a91ac4e057a4721.tar.xz
testing/perl-url-encode: fix url fix license
Diffstat (limited to 'testing/perl-url-encode')
-rw-r--r--testing/perl-url-encode/APKBUILD21
1 files changed, 6 insertions, 15 deletions
diff --git a/testing/perl-url-encode/APKBUILD b/testing/perl-url-encode/APKBUILD
index 7f6eea6ecf..a8e1b81a22 100644
--- a/testing/perl-url-encode/APKBUILD
+++ b/testing/perl-url-encode/APKBUILD
@@ -4,43 +4,34 @@
pkgname=perl-url-encode
_pkgreal=URL-Encode
pkgver=0.03
-pkgrel=0
+pkgrel=1
pkgdesc="Encoding and decoding of C<application/x-www-form-urlencoded> encoding."
-url="http://search.cpan.org/dist/URL-Encode/"
+url="https://metacpan.org/release/URL-Encode"
arch="noarch"
-license="GPL PerlArtistic"
-cpandepends=""
-cpanmakedepends=""
-cpancheckdepends=""
-depends="$cpandepends"
-makedepends="perl-dev perl-module-install $cpanmakedepends"
-checkdepends="$cpancheckdepends"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+makedepends="perl-dev perl-module-install"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/C/CH/CHANSEN/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
- 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
}
package() {
- cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
- cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}