diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-10-29 14:31:07 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-10-29 14:31:07 +0000 |
commit | 400d4c2642ae1c57c2b47166e8fdb95d5f90a664 (patch) | |
tree | d57e661850581add0a823a10e903911ceca9d67f | |
parent | 1c78267085c288c07271bf4dfb03cc95d50a879e (diff) | |
download | aports-400d4c2642ae1c57c2b47166e8fdb95d5f90a664.tar.bz2 aports-400d4c2642ae1c57c2b47166e8fdb95d5f90a664.tar.xz |
testing/perl-tie-refhash-weak: new aport
-rw-r--r-- | testing/perl-tie-refhash-weak/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-tie-refhash-weak/APKBUILD b/testing/perl-tie-refhash-weak/APKBUILD new file mode 100644 index 0000000000..e1f8b89d68 --- /dev/null +++ b/testing/perl-tie-refhash-weak/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-tie-refhash-weak +_pkgreal=Tie-RefHash-Weak +pkgver=0.09 +pkgrel=0 +pkgdesc="unknown" +url="http://search.cpan.org/dist/Tie-RefHash-Weak/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-variable-magic perl-task-weaken" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/$_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="c7c6793fab417c9761d88f596dfb32e9 Tie-RefHash-Weak-0.09.tar.gz" |