summaryrefslogtreecommitdiffstats
path: root/testing/perl-software-license
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-10-29 10:44:36 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-10-29 10:44:36 +0000
commit6799d9768d192e24398292459742fe80ac30a5f5 (patch)
tree79ab3e718409653dd7432f716749d2b6e53853fb /testing/perl-software-license
parent9b5918bdba19b36f3600271fa0fc299939b77445 (diff)
downloadaports-6799d9768d192e24398292459742fe80ac30a5f5.tar.bz2
aports-6799d9768d192e24398292459742fe80ac30a5f5.tar.xz
testing/perl-software-license: new aport
Diffstat (limited to 'testing/perl-software-license')
-rw-r--r--testing/perl-software-license/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-software-license/APKBUILD b/testing/perl-software-license/APKBUILD
new file mode 100644
index 000000000..2898e7094
--- /dev/null
+++ b/testing/perl-software-license/APKBUILD
@@ -0,0 +1,39 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-software-license
+_pkgreal=Software-License
+pkgver=0.103004
+pkgrel=0
+pkgdesc="packages that provide templated software licenses"
+url="http://search.cpan.org/dist/Software-License/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-text-template perl-data-section perl-sub-install"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+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 && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="0c5fd53d93818566234578b27d667b35 Software-License-0.103004.tar.gz"