aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-capture-tiny/APKBUILD
blob: 97cb47d76423fb082a83712dc203216ef6ab1a1d (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 <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-capture-tiny
_pkgreal=Capture-Tiny
pkgver=0.23
pkgrel=0
pkgdesc="Capture STDOUT and STDERR from Perl, XS or external programs"
url="http://search.cpan.org/dist/Capture-Tiny/"
arch="noarch"
license="apache_2_0"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_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 && make test
}

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

md5sums="7c6f63671802d004c0df5dbcba93e5b4  Capture-Tiny-0.23.tar.gz"
sha256sums="427814015824014b41f666c16afadab0ea551db946e494fdfbc59c44c9569bdf  Capture-Tiny-0.23.tar.gz"
sha512sums="0bb2ee722693ea219a6bd241a8e1223bd4f07b4564b94f6b0ad2cee8dd4c0d7d211c4ecbd47efee72de60e2875eed45c196fab78469294c7917168a9c681e45d  Capture-Tiny-0.23.tar.gz"