Commit dcf3ede4 authored by Leo's avatar Leo Committed by Francesco Colista

main/perl-package-anon: modernize, fix license

parent 299eb6e1
...@@ -4,38 +4,35 @@ ...@@ -4,38 +4,35 @@
pkgname=perl-package-anon pkgname=perl-package-anon
_pkgreal=Package-Anon _pkgreal=Package-Anon
pkgver=0.05 pkgver=0.05
pkgrel=5 pkgrel=6
pkgdesc="Anonymous packages" pkgdesc="Anonymous packages"
url="http://search.cpan.org/dist/Package-Anon/" url="http://search.cpan.org/dist/Package-Anon/"
arch="all" arch="all"
license="GPL PerlArtistic" license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="" cpanmakedepends="perl-sub-exporter"
cpanmakedepends="perl-sub-exporter perl-sub-exporter "
depends="$cpandepends" depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends" makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AU/AUGGY/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/A/AU/AUGGY/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" 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 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test make && make test
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="06599ea8c760e679dce8ebfb6b6a1edb Package-Anon-0.05.tar.gz"
sha256sums="15d0285e628a721138bcb1c36dea934379a89fdbc450fd79148e4e37a77241ba Package-Anon-0.05.tar.gz"
sha512sums="73adf4eb8348ad51e678d7d777f7c13599eaaa53e776a35df768ee1afcf781801c980c786c658addad80ae5fe852fefb3600722ea7b02d928653543aa28d9d51 Package-Anon-0.05.tar.gz" sha512sums="73adf4eb8348ad51e678d7d777f7c13599eaaa53e776a35df768ee1afcf781801c980c786c658addad80ae5fe852fefb3600722ea7b02d928653543aa28d9d51 Package-Anon-0.05.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment