aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-term-readline-gnu/APKBUILD
blob: 8057e2dba07e99810f3e08e0cf62139db5bf162f (plain) (blame)
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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=perl-term-readline-gnu
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Term-ReadLine-Gnu
pkgver=1.41
pkgrel=0
pkgdesc="Perl extension for the GNU Readline/History Library"
url="https://metacpan.org/release/Term-ReadLine-Gnu/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev readline-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/H/HA/HAYASHI/Term-ReadLine-Gnu-$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
	make
}

check() {
	export TERM=xterm-256color
	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="864991764ffbcc822929b8920e3b0eee1c954f444d0e040455ac1bb847390249c5d2e2c5d5f22f959ac99ffbdae90ea1f087d33e4dd7f3a2215aa702a2d3cd3c  Term-ReadLine-Gnu-1.41.tar.gz"