aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-toml/APKBUILD
blob: def348d52d608e592be50a2e89a99a7b70d6f3cf (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-toml
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=TOML
pkgver=0.97
pkgrel=0
pkgdesc="Parser for Tom's Obvious, Minimal Language."
url="https://metacpan.org/release/TOML/"
arch="noarch"
license="GPL-2.0-only"
depends="perl perl-toml-parser"
makedepends="perl-module-build-tiny perl-module-build"
checkdepends="perl-common-sense"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KA/KARUPA/TOML-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="96eb23e6f889119b67579340b48ed4ff089bd6600aab0d06954516a95a5017f3c042f25c9df5957312c770e39206fe03e758262e7efc0bffebb183e6287cdfb4  TOML-0.97.tar.gz"