diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2019-06-14 01:50:07 +0200 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-14 05:09:35 -0300 |
commit | 0e898afd3d2da74925c0994a91754e7a49eab64e (patch) | |
tree | 4e5681316f1315666dcdb06a374e24d5c0d95ae7 /community/perl-http-server-simple | |
parent | a44708bfe5c135aab63ae774bfce5e9ce79becdb (diff) | |
download | aports-0e898afd3d2da74925c0994a91754e7a49eab64e.tar.bz2 aports-0e898afd3d2da74925c0994a91754e7a49eab64e.tar.xz |
community/perl-http-server-simple: fix URL&License
* modernize
Diffstat (limited to 'community/perl-http-server-simple')
-rw-r--r-- | community/perl-http-server-simple/APKBUILD | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/community/perl-http-server-simple/APKBUILD b/community/perl-http-server-simple/APKBUILD index bda6411e57..3c046a2b06 100644 --- a/community/perl-http-server-simple/APKBUILD +++ b/community/perl-http-server-simple/APKBUILD @@ -3,40 +3,34 @@ pkgname=perl-http-server-simple _pkgreal=HTTP-Server-Simple pkgver=0.52 -pkgrel=0 +pkgrel=1 pkgdesc="Lightweight HTTP server" -url="http://search.cpan.org/dist/HTTP-Server-Simple/" +url="https://metacpan.org/pod/HTTP::Server::Simple" arch="noarch" -license="GPL PerlArtistic" -cpandepends="perl-cgi" -cpanmakedepends="" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" checkdepends="perl-test-pod perl-test-pod-coverage" -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +depends="perl-cgi" +makedepends="perl-dev" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/B/BP/BPS/$_pkgreal-$pkgver.tar.gz" +source="https://cpan.metacpan.org/authors/id/B/BP/BPS/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" -check() { - cd "$builddir" - make test -} - 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 } +check() { + make test +} + package() { - cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |