aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-config-inifiles/APKBUILD
blob: a6072a3b3438c16b81dff773375ced180a283288 (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
42
43
44
45
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-config-inifiles
_pkgname=Config-IniFiles
pkgver=3.000001
pkgrel=0
pkgdesc="A module for reading .ini-style configuration files."
url="http://search.cpan.org/dist/Config-IniFiles/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-list-moreutils"
cpanmakedepends="perl-io-stringy"
depends="$cpandepends"
makedepends="perl-dev perl-module-build $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/${_pkgname}-${pkgver}.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	default_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
}

check() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="e41249fdd7d22763aa73fd31782487571d9e2dfe710dff61fe80e29ca560155a5dbeb20d0f380f86c4a713adcbe0ba2978a8f8b70dc90e625e66872c0be9ebef  Config-IniFiles-3.000001.tar.gz"