mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/perl-ffi-c: new aport
https://metacpan.org/release/FFI-C/ C data types for FFI
This commit is contained in:
parent
884be248d9
commit
e5734b8292
44
testing/perl-ffi-c/APKBUILD
Normal file
44
testing/perl-ffi-c/APKBUILD
Normal file
@ -0,0 +1,44 @@
|
||||
# Automatically generated by apkbuild-cpan, template 4
|
||||
# Contributor: Celeste <cielesti@protonmail.com>
|
||||
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||
pkgname=perl-ffi-c
|
||||
pkgver=0.15
|
||||
pkgrel=0
|
||||
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||
_pkgreal=FFI-C
|
||||
pkgdesc="C data types for FFI"
|
||||
url="https://metacpan.org/release/FFI-C/"
|
||||
# armv7, armhf, x86: ffi_c_ffi.t and ffi_c_util.t tests fail
|
||||
arch="noarch !armv7 !armhf !x86"
|
||||
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||
depends="
|
||||
perl perl-class-inspector perl-ffi-platypus
|
||||
perl-ffi-platypus-type-enum perl-ref-util
|
||||
perl-sub-identify perl-sub-install
|
||||
"
|
||||
checkdepends="perl-capture-tiny perl-path-tiny perl-test2-suite"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/FFI-C-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
build() {
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
||||
INSTALLDIRS=vendor \
|
||||
NO_PACKLIST=1 \
|
||||
NO_PERLLOCAL=1
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
4f693a44eb9d4098f877ed9354c59e382a50d91a5a46f16441d4a96a751a87bb08ebdc99a700f5b97d03d7cfc58a50cfa946ee63252fe7b51e681e990ccb40c3 FFI-C-0.15.tar.gz
|
||||
"
|
||||
Loading…
x
Reference in New Issue
Block a user