testing/perl-sentinel: new aport

https://metacpan.org/release/Sentinel/
Create lightweight SCALARs with get/set callbacks
This commit is contained in:
Celeste 2024-01-18 03:54:12 +00:00 committed by omni
parent 6f5537e85d
commit 9418441d99

View File

@ -0,0 +1,38 @@
# Automatically generated by apkbuild-cpan, template 4
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-sentinel
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Sentinel
pkgver=0.07
pkgrel=0
pkgdesc="Create lightweight SCALARs with get/set callbacks"
url="https://metacpan.org/release/Sentinel/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev perl-module-build"
checkdepends="perl-syntax-keyword-dynamically perl-test2-suite"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Sentinel-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL \
--installdirs=vendor \
--create_packlist=0
./Build
}
check() {
./Build test
}
package() {
./Build install --destdir="$pkgdir"
}
sha512sums="
d8393ed6e53ebe5614f45d0ef5ee0d46f4516f9015e08fb53aa85b077ad181ca7f95d957b4be7018eede43b11bbdd98c3ea5268627fb244671626852976eff77 Sentinel-0.07.tar.gz
"