aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-exporter-tiny/APKBUILD
blob: bd2782476a8b9187159b1851c1925f7c0ce2be48 (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: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-exporter-tiny
_pkgreal=Exporter-Tiny
pkgver=0.042
pkgrel=0
pkgdesc="an exporter with the features of Sub::Exporter but only core dependencies"
url="http://search.cpan.org/dist/Exporter-Tiny/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   perl-test-warnings perl-test-fatal"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/$_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="77ba432037f35bc9b84b717639075fc6  Exporter-Tiny-0.042.tar.gz"
sha256sums="8f1622c5ebbfbcd519ead81df7917e48cb16cc527b1c46737b0459c3908a023f  Exporter-Tiny-0.042.tar.gz"
sha512sums="b69b722842b4a907fa434a1a798df6f983bae74d7b82e925a1db684cb166f2ef02a72cce176173af035321dc27ad35b49e1fb1ee57c0e2ca6596d84da140c06f  Exporter-Tiny-0.042.tar.gz"