diff options
-rw-r--r-- | user/perl-chart/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-chart/APKBUILD b/user/perl-chart/APKBUILD new file mode 100644 index 000000000..7945829c0 --- /dev/null +++ b/user/perl-chart/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-chart +_pkgname=Chart +pkgver=2.4.10 +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-gd" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/C/CH/CHARTGRP/Chart-$pkgver.tar.gz" +builddir="$srcdir/Chart-$pkgver" + +build() { + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="e8327c46e0cbcea0ed8f723b7b369f4b694c0d7050d3fab35371e0717938292b5bacd3e367ed87e272dc258db020c378690405f93d23ba0ed546dc29dd59e37d Chart-2.4.10.tar.gz" |