aports/testing/perl-string-compare-constanttime/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

40 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-string-compare-constanttime
pkgver=0.321
pkgrel=6
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=String-Compare-ConstantTime
pkgdesc="Timing side-channel protected string compare"
url="https://metacpan.org/release/String-Compare-ConstantTime/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/F/FR/FRACTAL/String-Compare-ConstantTime-$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="
879b507f85ea26909185cf2f4f0a5ffd1a6364bc4eed3c849f19867f0614a517b48bcab1b0f3e5f80ce21cec24aabe024efac69661a6f0800289d772eda27753 String-Compare-ConstantTime-0.321.tar.gz
"