aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-exception/APKBUILD
blob: 0e4d984cae8fc6e9ecf5a39eac3de460e0be1872 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-test-exception
_pkgreal=Test-Exception
pkgver=0.43
pkgrel=0
pkgdesc="Perl - Test exception based code"
url="http://search.cpan.org/dist/Test-Exception/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-sub-uplevel"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make || return 1
}

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

md5sums="572d355026fb0b87fc2b8c64b83cada0  Test-Exception-0.43.tar.gz"
sha256sums="156b13f07764f766d8b45a43728f2439af81a3512625438deab783b7883eb533  Test-Exception-0.43.tar.gz"
sha512sums="f5ab65ce7b142ab7a96b0075838826a7f6b975a151a285e00d99db307bea07b359d5ca44eb678ba93d97b2ae37a112f0002ae1c06bb6e5654b80ce8c5473aa20  Test-Exception-0.43.tar.gz"