blob: e9845b1532416ef5a499ab526caf4de0af4fa349 (
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
|
# 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.37
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="e2ada2104a9efef56dcda9999348674e0ba72bb5ece74961342a8d00fd66990fb471ef2f2af75cddce4c1d0210f9e219f017de08c1cc2c4ade7878b25b8c5915 Term-ReadLine-Gnu-1.37.tar.gz"
|