diff options
author | Nick Andrew <nick@nick-andrew.net> | 2017-04-17 13:36:48 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-08-29 08:35:38 +0000 |
commit | 5cae864bbf99c7c94387ab1cff25e81749f41093 (patch) | |
tree | 876e775decac658a392e9f7b08cc979dc5ab25e1 /testing | |
parent | b13edd5722ed3f5e424cbfb538cb5934846ca6a2 (diff) | |
download | aports-5cae864bbf99c7c94387ab1cff25e81749f41093.tar.bz2 aports-5cae864bbf99c7c94387ab1cff25e81749f41093.tar.xz |
testing/perl-sys-syscall: new aport
Invoke system calls that are otherwise difficult to do from Perl
http://search.cpan.org/dist/Sys-Syscall/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-sys-syscall/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-sys-syscall/APKBUILD b/testing/perl-sys-syscall/APKBUILD new file mode 100644 index 0000000000..bcceadc96a --- /dev/null +++ b/testing/perl-sys-syscall/APKBUILD @@ -0,0 +1,48 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Nick Andrew <nick@nick-andrew.net> +# Maintainer: Nick Andrew <nick@nick-andrew.net> +pkgname=perl-sys-syscall +_pkgreal=Sys-Syscall +pkgver=0.25 +pkgrel=0 +pkgdesc="Invoke system calls that are otherwise difficult to do from Perl" +url="http://search.cpan.org/dist/Sys-Syscall/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/B/BR/BRADFITZ/$_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 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="8b0641c992865cc7a29874a2166a4f0542039958839c6305cd4c33d17cfbdecd4f4ee74dc8110bfb000e42cabd803a84c6ba39037765d61ccb2bdf60522be87f Sys-Syscall-0.25.tar.gz" |