mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/perl-algorithm-permute: new aport
https://metacpan.org/release/Algorithm-Permute/ Handy and fast permutation with object oriented interface
This commit is contained in:
parent
2850f4f617
commit
c39fd73c5a
40
testing/perl-algorithm-permute/APKBUILD
Normal file
40
testing/perl-algorithm-permute/APKBUILD
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# Automatically generated by apkbuild-cpan, template 4
|
||||||
|
# Contributor: Celeste <cielesti@protonmail.com>
|
||||||
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||||
|
pkgname=perl-algorithm-permute
|
||||||
|
pkgver=0.17
|
||||||
|
pkgrel=0
|
||||||
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||||
|
_pkgreal=Algorithm-Permute
|
||||||
|
pkgdesc="Handy and fast permutation with object oriented interface"
|
||||||
|
url="https://metacpan.org/release/Algorithm-Permute/"
|
||||||
|
arch="all"
|
||||||
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||||
|
depends="perl"
|
||||||
|
makedepends="perl-dev"
|
||||||
|
checkdepends="perl-test-leaktrace"
|
||||||
|
subpackages="$pkgname-doc"
|
||||||
|
source="https://cpan.metacpan.org/authors/id/S/SL/SLOYD/Algorithm-Permute-$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="
|
||||||
|
eb7aa9003f12371067c398dd3ed7007615c525a936f618ae867594338d6638ed4d4875aa9b86e5fae6fa4f518d46d56f0392f6415c874b3e509e19b32de8f811 Algorithm-Permute-0.17.tar.gz
|
||||||
|
"
|
Loading…
Reference in New Issue
Block a user