blob: 72d498a6c48553cad33b5eda751cb6e81d316a82 (
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
41
|
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-term-size
_pkgreal=Term-Size
pkgver=0.209
pkgrel=0
pkgdesc="Retrieve terminal size (Unix version)"
url="http://search.cpan.org/dist/Term-Size/"
arch="all"
license="GPL PerlArtistic"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/F/FE/FERREIRA/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="bedd8afcbeac69ee90705c079eed734ecbff9f63a70a5507f3c06cd1b4d2e580612b563bb84b7714307ad5a15d8194d9831e09b3b2ff07f82e3c3802750e6b3c Term-Size-0.209.tar.gz"
|