blob: 0e7f6042905c869bace954915e66fa7187d98ab9 (
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
|
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-term-size
_pkgreal=Term-Size
pkgver=0.209
pkgrel=5
pkgdesc="Retrieve terminal size (Unix version)"
url="https://metacpan.org/release/Term-Size/"
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/FE/FERREIRA/Term-Size-$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 CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="bedd8afcbeac69ee90705c079eed734ecbff9f63a70a5507f3c06cd1b4d2e580612b563bb84b7714307ad5a15d8194d9831e09b3b2ff07f82e3c3802750e6b3c Term-Size-0.209.tar.gz"
|