aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-config-inifiles/APKBUILD
blob: f739aae4da07d65f507a57a1143cf4f2748e6b83 (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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-config-inifiles
_pkgreal=Config-IniFiles
pkgver=2.94
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/${_pkgreal}-${pkgver}.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	make && make test
}

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

md5sums="0828508c1c7663760c8a1bd6d1b2ff94  Config-IniFiles-2.94.tar.gz"
sha256sums="d6d38a416da79de874c5f1825221f22e972ad500b6527d190cc6e9ebc45194b4  Config-IniFiles-2.94.tar.gz"
sha512sums="9ca9950f31a00bde580dc73b5120971070aa053f36f9a0ee29532b17b9a070de8ad3184631427ad442dbcbe087a9680366849b5e10f264e20694ddade7e3ca7c  Config-IniFiles-2.94.tar.gz"