aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-perlio-locale/APKBUILD
blob: 52697da5e01b69143bcfb44f6b422fe99cd45b54 (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 <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-perlio-locale
_pkgreal=PerlIO-locale
pkgver=0.10
pkgrel=3
pkgdesc="unknown"
url="http://search.cpan.org/dist/PerlIO-locale/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/$_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="f18ca114e09be19f73e89b8f5419b2ea  PerlIO-locale-0.10.tar.gz"
sha256sums="e6b3614e72b5e6b0735c2cdf2c6c01e889094565ccaa543a53c2badc121125ae  PerlIO-locale-0.10.tar.gz"
sha512sums="d61a9cdf60c89cda9f39335a54878df87a112f5e4caf8d697a5173797726242ecc602a8670d2b058ad5677cc5db3100afc9742bee1498ef922e02362e5281f5c  PerlIO-locale-0.10.tar.gz"