aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-term-readkey/APKBUILD
blob: cd1b5e2d063a39bdd0c6353dd00fca5837db891e (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: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-term-readkey
_pkgreal=TermReadKey
pkgver=2.32
pkgrel=2
pkgdesc="Change terminal modes, and perform non-blocking reads"
url="http://search.cpan.org/dist/TermReadKey/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/$_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 -j1 && make test
}

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

md5sums="c55420c3456b8e470a01d6557b1045a8  TermReadKey-2.32.tar.gz"
sha256sums="58b90e8908e686d03a161590c1dd870e8a1b005715ca8e6d5080a32459e1e9f8  TermReadKey-2.32.tar.gz"
sha512sums="35dc453146c24955663d58db36881df54bd8f1a7391add4a35e34e0e238d667bfe88b6b283571aedfe2935a1add61bf8ef68bc0e496a55804e229deaad42e756  TermReadKey-2.32.tar.gz"