diff options
Diffstat (limited to 'testing/perl-curses-ui/APKBUILD')
-rw-r--r-- | testing/perl-curses-ui/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-curses-ui/APKBUILD b/testing/perl-curses-ui/APKBUILD new file mode 100644 index 0000000000..93180e2774 --- /dev/null +++ b/testing/perl-curses-ui/APKBUILD @@ -0,0 +1,48 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Milan P. Stanić <mps@arvanta.net> +# Maintainer: Milan P. Stanić <mps@arvanta.net> +pkgname=perl-curses-ui +_pkgreal=Curses-UI +pkgver=0.9609 +pkgrel=0 +pkgdesc="A curses based OO user interface framework" +url="http://search.cpan.org/dist/Curses-UI/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-term-readkey perl-curses" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/M/MD/MDXI/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="b92bf34b3d6b9434b948bb8c4a490e4fca4f4edc7289fd5be9fddf4af68424b12ade9c9096ab6e9b292d1863522a1b743b0f68aabec745300092a3d59e43762a Curses-UI-0.9609.tar.gz" |