diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-28 09:23:14 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-28 09:23:14 +0000 |
commit | f695ffb713f404836cc7f24bdf3a5766d8ef0a7d (patch) | |
tree | 406a3f979ea4f9b44c6f3edbed844924ab75a75b /testing/perl-path-tiny | |
parent | 17ec2f0143303c246099f3b668c77290d6b02cbc (diff) | |
download | aports-f695ffb713f404836cc7f24bdf3a5766d8ef0a7d.tar.bz2 aports-f695ffb713f404836cc7f24bdf3a5766d8ef0a7d.tar.xz |
testing/perl-path-tiny: new aport
Diffstat (limited to 'testing/perl-path-tiny')
-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" |