mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 00:16:45 +02:00
leaving the Maintainer comment there for better visual cues, syntax highlighting, and easy conversion to a Contributor comment since Contributor comments are not being removed, just treat my Maintainer comments like Contributor ones, as a normal comment
59 lines
1.6 KiB
Text
59 lines
1.6 KiB
Text
# Automatically generated by apkbuild-cpan, template 4
|
|
# Maintainer: 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
|
|
"
|