summaryrefslogtreecommitdiff
path: root/user/perl-chart/APKBUILD
blob: 68033a26dde2b719f90c17c6034b0d1b1052f296 (plain) (blame)
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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-chart
_pkgreal=Chart
_author=LICHTKIND
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=2.403.9
pkgrel=0
pkgdesc="Series of charting modules for Perl"
url="https://metacpan.org/release/Chart"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-2.0-only"
depends="perl perl-gd perl-graphics-toolkit-color"
checkdepends="perl-test-warn"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-v$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="bbeb366b93b262e402f42649d9cec470294d87d75b6ee2885d77ce47f26d67d98d45eabfe3fe4c048296df19239b668db05c31969d1984d7cb84c00bdd7d2c64  Chart-v2.403.9.tar.gz"