diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-09-13 13:47:05 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-09-13 13:54:08 +0000 |
commit | f9f24c11af532cc320e815a055a533cacd7b4dae (patch) | |
tree | 7c138133c9d3275a3813c5a7d057d7c1be2d312d /community/perl-path-tiny | |
parent | 18d3c5538c7118e820f6fea6564e0ddf3ed078aa (diff) | |
download | aports-f9f24c11af532cc320e815a055a533cacd7b4dae.tar.bz2 aports-f9f24c11af532cc320e815a055a533cacd7b4dae.tar.xz |
community/perl-path-tiny: moved from testing
Diffstat (limited to 'community/perl-path-tiny')
-rw-r--r-- | community/perl-path-tiny/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/perl-path-tiny/APKBUILD b/community/perl-path-tiny/APKBUILD new file mode 100644 index 0000000000..3b504e8fee --- /dev/null +++ b/community/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" |