summaryrefslogtreecommitdiffstats
path: root/main/perl-file-tail/APKBUILD
blob: b2d21ed3b953e760947e8f8b2e0dc64d5f811e0e (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-tail
_pkgreal=File-Tail
pkgver=1.0
pkgrel=0
pkgdesc="unknown"
url="http://search.cpan.org/dist/File-Tail/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MG/MGRABNAR/$_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="c87f648d138c176b5d224c8d1b59838e  File-Tail-1.0.tar.gz"
sha256sums="56683bc53cbc06ee701d42ddcdabe69895206fa5049af13cef9c68d147d57ed3  File-Tail-1.0.tar.gz"
sha512sums="8ad120e83fcf18d05f686c637f96af7dd0b5b04186e0b3fbfdf802bf82effaa16377fce15887d395abd03f9ebe4db2685d1d8e40f0b7b19b08ad71a93042551f  File-Tail-1.0.tar.gz"