aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-capture-tiny/APKBUILD
blob: 215768c1ad5212eccbb8531a447dd47cda4b592b (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.22
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="f270ee3682aabf10747592f6c05ef7ba  Capture-Tiny-0.22.tar.gz"
sha256sums="219f4778640241cbea4ae7096c55cf55353de932a9c27bec23c059ee18169985  Capture-Tiny-0.22.tar.gz"
sha512sums="8fa752d2421abd2f3ae7b4e906dd0ce5e0a88193a08fdf1d53f3ed3457bf769ace69cd0493fdf8c4622f6454071f92a27e9bfa30aa3aade0cd9404af750ea9f9  Capture-Tiny-0.22.tar.gz"