aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-libintl-perl/APKBUILD
blob: 73e931ad14c5a281b2ed28e8a00bb51aca35914d (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: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-libintl-perl
_pkgreal=libintl-perl
pkgver=1.25
pkgrel=0
pkgdesc="unknown"
url="http://search.cpan.org/dist/libintl-perl/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/G/GU/GUIDO/$_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="d57633100dd6a138474a59996bf5b545  libintl-perl-1.25.tar.gz"
sha256sums="a597e128742e1c1c973a5e968626ef55eb270e8ecde793333c7a7247895f2431  libintl-perl-1.25.tar.gz"
sha512sums="a15ec97dfa4abf6e0d468022ee8126cd6251d0553ecb91b0bc7054c8b3c53fe075579b01df323c05a3c1ef5466c4225be34a51cceeb7c204ea7369be2e45ea24  libintl-perl-1.25.tar.gz"