diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-07-06 15:41:23 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-11 14:31:24 +0300 |
commit | 360b7e2eb52da4e953fee1570af3b2b043d8015a (patch) | |
tree | 352c4f82cf8a95216891d35625543e4694a82cb2 | |
parent | 8169f9cdf1d1d2d31f1d0615b9ce0459fc50054a (diff) | |
download | aports-360b7e2eb52da4e953fee1570af3b2b043d8015a.tar.bz2 aports-360b7e2eb52da4e953fee1570af3b2b043d8015a.tar.xz |
testing/perl-text-brew: new aport
http://search.cpan.org/dist/Text-Brew/
-rw-r--r-- | testing/perl-text-brew/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-text-brew/APKBUILD b/testing/perl-text-brew/APKBUILD new file mode 100644 index 0000000000..8c512d5513 --- /dev/null +++ b/testing/perl-text-brew/APKBUILD @@ -0,0 +1,48 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=perl-text-brew +_pkgreal=Text-Brew +pkgver=0.02 +pkgrel=0 +pkgdesc="unknown" +url="http://search.cpan.org/dist/Text-Brew/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/K/KC/KCIVEY/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + 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 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="6748a30fdff84427d5846b926ffcd25a4e9f15ba0f572c6f0516ba92552e6172ed536ee35ef922a86637efe9a5b04b470d5734a715b28d4ec120d124050f3877 Text-Brew-0.02.tar.gz" |