aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-file-slurp-tiny/APKBUILD
blob: 4ef658d77717f68cf7c8770be8dae6e5108cf90e (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.004
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="7575b81543281ea57cdb7e5eb3f73264  File-Slurp-Tiny-0.004.tar.gz"
sha256sums="452995beeabf0e923e65fdc627a725dbb12c9e10c00d8018c16d10ba62757f1e  File-Slurp-Tiny-0.004.tar.gz"
sha512sums="916af1da5375ced4ebc00cb2b908e53b027e7b4fcad9069d5109eb2c0623faaa1d2d4fc8aeefb22861c7304ec913696cec85c280a82fd9aa7236c902427bc5cf  File-Slurp-Tiny-0.004.tar.gz"