diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-16 15:13:27 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-16 15:13:27 +0000 |
commit | f4f281d8e2fd76943f6dcfee40e5d50623e214c4 (patch) | |
tree | 3e6da5c3aac17315ecf8bfe127fb1b3fb2428acf /main/perl-test-file-sharedir | |
parent | c335f340d4370400f579cb1476becd575091e0db (diff) | |
download | aports-f4f281d8e2fd76943f6dcfee40e5d50623e214c4.zip |
main/perl-test-file-sharedir: new aport
needed by perl-datetime-locale
Diffstat (limited to 'main/perl-test-file-sharedir')
-rw-r--r-- | main/perl-test-file-sharedir/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/main/perl-test-file-sharedir/APKBUILD b/main/perl-test-file-sharedir/APKBUILD new file mode 100644 index 00000000000..5653318381b --- /dev/null +++ b/main/perl-test-file-sharedir/APKBUILD @@ -0,0 +1,48 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: +# Maintainer: +pkgname=perl-test-file-sharedir +_pkgreal=Test-File-ShareDir +pkgver=1.001002 +pkgrel=0 +pkgdesc="Create a Fake ShareDir for your modules for testing." +url="http://search.cpan.org/dist/Test-File-ShareDir/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-class-tiny perl-file-sharedir perl-file-copy-recursive perl-path-tiny perl-scope-guard" +cpanmakedepends="" +cpancheckdepends="perl-test-fatal" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/K/KE/KENTNL/$_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="858fd7483a63fe4742e48663d64088b811658c9d24dfc730ae1fb5786818949133de98f1cc3a705f67ad97fed1144420a96c22e2cfa663c79953c33f1633f00e Test-File-ShareDir-1.001002.tar.gz" |