summaryrefslogtreecommitdiffstats
path: root/main/perl-file-slurp-tiny/APKBUILD
blob: e2c836b7ad5d7e01ac95c88e0693af4a5768b2e3 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-file-slurp-tiny
_pkgreal=File-Slurp-Tiny
pkgver=0.003
pkgrel=0
pkgdesc="A simple, sane and efficient file slurper"
url="http://search.cpan.org/dist/File-Slurp-Tiny/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/$_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="b3c1c485b5bc40f7e94acfd983d7a871  File-Slurp-Tiny-0.003.tar.gz"
sha256sums="ded61a7ab96db8c6a14466a5984091a60af9b384b3355d06aeaa6433ac977c02  File-Slurp-Tiny-0.003.tar.gz"
sha512sums="28ad2e9d0030ce66ffa133aab403585d3ad42336d2e74e2dc5ed76976f4a2824cab5193b6fcb480cb8fc847887657242615b7fde2069df966097bfa2da2788ae  File-Slurp-Tiny-0.003.tar.gz"