aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-config-inifiles/APKBUILD
blob: 826e8b327a6458baa7f7eabf2724614b7c06a178 (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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-config-inifiles
_pkgname=Config-IniFiles
pkgver=3.000002
pkgrel=2
pkgdesc="A module for reading .ini-style configuration files."
url="https://metacpan.org/release/Config-IniFiles"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-list-moreutils perl-io-stringy"
depends="$cpandepends"
makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/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="05aaad3e9ef9515bc7616a95adaa0d6471734d1a248b6968a89634566cec8ff82360905fb6553c9e1afe1cfe843bbf29ebe0f2203a84cc24a275f839e2d74120  Config-IniFiles-3.000002.tar.gz"