diff options
Diffstat (limited to 'testing/perl-path-tiny/APKBUILD')
-rw-r--r-- | testing/perl-path-tiny/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/perl-path-tiny/APKBUILD b/testing/perl-path-tiny/APKBUILD new file mode 100644 index 0000000000..3b504e8fee --- /dev/null +++ b/testing/perl-path-tiny/APKBUILD @@ -0,0 +1,42 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-path-tiny +_pkgreal=Path-Tiny +pkgver=0.096 +pkgrel=0 +pkgdesc="File path utility" +url="http://search.cpan.org/dist/Path-Tiny/" +arch="noarch" +license="apache_2_0" +cpandepends="" +cpanmakedepends=" perl-test-mockrandom perl-test-failwarnings" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_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 && make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="fac457f1c34134a9cce3aa15d3c7a1b7 Path-Tiny-0.096.tar.gz" +sha256sums="226b62da03a0fc0601c3447f6c9809dc81a6aa053df696e0b96d3c29a3c9b521 Path-Tiny-0.096.tar.gz" +sha512sums="9728b0d0f3bcd289f72a75212e376534523334f622203531bd5c2e8bdfd58728fb2ca952878f6100e4206ca4ab89d63927a7afb40c869e69965da1dc7f4e5629 Path-Tiny-0.096.tar.gz" |