aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-test-nginx/APKBUILD
blob: 976117dc886312f45914fa9241b64039709be97d (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 3
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=perl-test-nginx
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Test-Nginx
pkgver=0.26
pkgrel=2
pkgdesc="Data-driven test scaffold for Nginx C module and Nginx/OpenResty-based libraries and applications"
url="https://metacpan.org/release/Test-Nginx/"
arch="noarch"
# License appears to be BSD-3-Clause but there is a one
# word difference s/HOLDER/OWNER in line 2 of the Disclaimer
license="BSD-3-Clause(variant)"
depends="perl perl-http-message perl-uri perl-test-longstring
	perl-list-moreutils perl-libwww perl-text-diff perl-test-base"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AG/AGENT/Test-Nginx-$pkgver.tar.gz
	set-temp-paths.patch"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="8f5f244d98a20e9a125b2fb56753e77eb3f4a3390f01d46e9e565ef4cb2667725421322cda7ac3933f1fcb6f7863477769c18797cbe7b3eb3f7398590593fd01  Test-Nginx-0.26.tar.gz
028133884a4cba921ee9533fd0d53d1c65a0cbce93c9b81ffbe4004aaed6cdeb2a5327824d4b0cefe0902ba8c9e9f2a7efed65869db3f0733a36f9a4c56bbed9  set-temp-paths.patch"