mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 22:07:19 +02:00
testing/perl-lv: new aport
https://metacpan.org/release/LV/ Create lvalue subroutines
This commit is contained in:
parent
9418441d99
commit
c6f667fd2a
59
testing/perl-lv/APKBUILD
Normal file
59
testing/perl-lv/APKBUILD
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
# Automatically generated by apkbuild-cpan, template 4
|
||||||
|
# Contributor: Celeste <cielesti@protonmail.com>
|
||||||
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||||
|
pkgname=perl-lv
|
||||||
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||||
|
_pkgreal=LV
|
||||||
|
pkgver=0.006
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Create lvalue subroutines"
|
||||||
|
url="https://metacpan.org/release/LV/"
|
||||||
|
arch="noarch"
|
||||||
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||||
|
depends="perl perl-sub-name"
|
||||||
|
checkdepends="perl-sentinel perl-variable-magic"
|
||||||
|
subpackages="
|
||||||
|
$pkgname-doc
|
||||||
|
$pkgname-backend-magic
|
||||||
|
$pkgname-backend-sentinel
|
||||||
|
"
|
||||||
|
source="https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/LV-$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
|
||||||
|
}
|
||||||
|
|
||||||
|
magic() {
|
||||||
|
pkgdesc="$pkgdesc (Variable::Magic backend)"
|
||||||
|
depends="$pkgname=$pkgver-r$pkgrel perl-variable-magic"
|
||||||
|
install_if="$pkgname=$pkgver-r$pkgrel perl-variable-magic"
|
||||||
|
|
||||||
|
amove usr/share/perl5/vendor_perl/LV/Backend/Magic.pm
|
||||||
|
}
|
||||||
|
|
||||||
|
sentinel() {
|
||||||
|
pkgdesc="$pkgdesc (Sentinel backend)"
|
||||||
|
depends="$pkgname=$pkgver-r$pkgrel perl-sentinel"
|
||||||
|
install_if="$pkgname=$pkgver-r$pkgrel perl-sentinel"
|
||||||
|
|
||||||
|
amove usr/share/perl5/vendor_perl/LV/Backend/Sentinel.pm
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
24d211728845e29e3a7360251c8ef3a9d8666eff9ee08c06bf7d02b66cf599c17ac143dec3439d52256ae608e7c8c382a71270126e4724916c67c75034a44024 LV-0.006.tar.gz
|
||||||
|
"
|
Loading…
Reference in New Issue
Block a user