aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-config-inifiles/APKBUILD
blob: b24b1fba91818e9d5aca9259ec20e074a7c2761b (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.88
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="   "
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="c322dde13d7d48b1f9d0f30f661002cf  Config-IniFiles-2.88.tar.gz"
sha256sums="8223d6d21efd752ef4f9cc1c17a9084976b66369b979ce9c895b7ca3997fa8dc  Config-IniFiles-2.88.tar.gz"
sha512sums="f6cd704ee60760860e3404a5f964cee367b55ab0900781c09b3d5eebb9fac6f458cf0c865a8edb1d3ec647c6923aa33e60b8a6e966fc9a6fb2f33bd9b3d73d04  Config-IniFiles-2.88.tar.gz"