diff options
author | prspkt <prspkt@protonmail.com> | 2018-03-08 22:00:49 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-03-09 16:35:32 +0000 |
commit | 1521491aaa46dd8f443ad3b387ea80103ff71045 (patch) | |
tree | 618e88f550732ba21e006d01f33c1958b9d51673 /main/perl-text-template | |
parent | 64d260ad1b02faeb67b7470a4d800235f6e6edc2 (diff) | |
download | aports-1521491aaa46dd8f443ad3b387ea80103ff71045.tar.bz2 aports-1521491aaa46dd8f443ad3b387ea80103ff71045.tar.xz |
main/perl-text-template: clarify license, modernize
Diffstat (limited to 'main/perl-text-template')
-rw-r--r-- | main/perl-text-template/APKBUILD | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/main/perl-text-template/APKBUILD b/main/perl-text-template/APKBUILD index c1f0d00441..d360154f82 100644 --- a/main/perl-text-template/APKBUILD +++ b/main/perl-text-template/APKBUILD @@ -4,38 +4,26 @@ pkgname=perl-text-template pkgver=1.46 pkgrel=0 pkgdesc="Text::Template perl module" -url="http://search.cpan.org/dist/Text-Template/" +url="http://search.cpan.org/dist/Text-Template" arch="noarch" -license="GPL-2.0 or Artistic" +license="GPL-1.0-or-later Artistic-1.0-Perl" depends="perl" makedepends="perl-dev" install="" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/M/MJ/MJD/Text-Template-$pkgver.tar.gz" -_builddir="$srcdir"/Text-Template-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - +builddir="$srcdir/Text-Template-$pkgver" build() { - cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make && make test || return 1 + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make && 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 } -md5sums="912ce180e05d99a169f20aaf4fbf8b8f Text-Template-1.46.tar.gz" -sha256sums="77d812cb86e48091bcd59aa8522ef887b33a0ff758f8a269da8c2b733889d580 Text-Template-1.46.tar.gz" sha512sums="406c218d5d59dc74419749fb5151d011fb4d629e6de79378be1290db23a602a9f7897f04ac80080b8ec2661d997f9e05bed7861e480130750471166da0a94592 Text-Template-1.46.tar.gz" |