blob: a74e46b6ceb449781508af4734c9bf4c6a63b5ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-string-compare-constanttime
_pkgreal=String-Compare-ConstantTime
pkgver=0.321
pkgrel=1
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"
prepare() {
default_prepare
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
sha512sums="879b507f85ea26909185cf2f4f0a5ffd1a6364bc4eed3c849f19867f0614a517b48bcab1b0f3e5f80ce21cec24aabe024efac69661a6f0800289d772eda27753 String-Compare-ConstantTime-0.321.tar.gz"
|