diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-10-29 15:25:12 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-10-29 15:25:12 +0000 |
commit | 2d88b54aa5731cc0de8df9b23ee051fb9f3dca60 (patch) | |
tree | 4551704df389e1b6a783c60d7dbe2ee1daa79e4a | |
parent | 652d35236948c7202e186e4f8d8de6591795c79d (diff) | |
download | aports-2d88b54aa5731cc0de8df9b23ee051fb9f3dca60.tar.bz2 aports-2d88b54aa5731cc0de8df9b23ee051fb9f3dca60.tar.xz |
testing/perl-module-util: new aport
-rw-r--r-- | testing/perl-module-util/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-module-util/APKBUILD b/testing/perl-module-util/APKBUILD new file mode 100644 index 0000000000..2f42d38c47 --- /dev/null +++ b/testing/perl-module-util/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-module-util +_pkgreal=Module-Util +pkgver=1.07 +pkgrel=0 +pkgdesc="Module name tools and transformations" +url="http://search.cpan.org/dist/Module-Util/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/M/MA/MATTLAW/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + perl Build.PL installdirs=vendor || return 1 +} + +build() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + ./Build && ./Build test +} + +package() { + cd "$_builddir" + ./Build install destdir="$pkgdir" || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="d9e5d48b7f1aee18582fab57f27cccfa Module-Util-1.07.tar.gz" |