aports/testing/perl-time-moment-role-strptime/APKBUILD
Celeste 40ea6c48d7 */*: add maintainer variable for aports i maintain
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
2024-10-16 16:20:45 +00:00

38 lines
1.1 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-time-moment-role-strptime
pkgver=0.001
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Time-Moment-Role-Strptime
pkgdesc="strptime(3) constructor for Time::Moment"
url="https://metacpan.org/release/Time-Moment-Role-Strptime/"
arch="noarch"
license="Artistic-2.0"
depends="perl perl-role-tiny perl-time-moment"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DB/DBOOK/Time-Moment-Role-Strptime-$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="
53270491640f06d82aa3a864abb877f2ed2b1ac4d0c281bf03511657c199454729551f81cbda9cb9955cb3495bcbeea688c2b189a242ee0c31fe796e2d6a9ee6 Time-Moment-Role-Strptime-0.001.tar.gz
"