aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-term-size-unix/APKBUILD
blob: 8b52478ed01c58af17381952d5b082ea2c654d56 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-term-size-unix
_pkgreal=Term-Size-Unix
pkgver=0.205
pkgrel=8
pkgdesc="Retrieve terminal size (Unix version)"
url="https://metacpan.org/release/FERREIRA/Term-Size-Unix-$pkgver"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/F/FE/FERREIRA/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

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 && make test
}

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

sha512sums="fc9b5bc91f37e9a741bd4ed3a70f31c41e3dc33e6c2f788b55133070deec367fc89842460760dca9f19275aa672e5d900e09be9dabfd09d7662a9e5c74007b19  Term-Size-Unix-0.205.tar.gz"