summaryrefslogtreecommitdiff
path: root/user/perl-gdgraph/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 02:56:37 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 02:56:37 +0000
commitb16038594b781b4ea8d4ff7ae8ee6eca7b23b6e1 (patch)
tree14d3f83a6b417916d69893bb1d622ddc0ae0f998 /user/perl-gdgraph/APKBUILD
parent8646dca350f907cde6a71adc1f81362cfb36ab59 (diff)
downloadpackages-b16038594b781b4ea8d4ff7ae8ee6eca7b23b6e1.tar.gz
packages-b16038594b781b4ea8d4ff7ae8ee6eca7b23b6e1.tar.bz2
packages-b16038594b781b4ea8d4ff7ae8ee6eca7b23b6e1.tar.xz
packages-b16038594b781b4ea8d4ff7ae8ee6eca7b23b6e1.zip
user/perl-gdgraph: new package
Diffstat (limited to 'user/perl-gdgraph/APKBUILD')
-rw-r--r--user/perl-gdgraph/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/user/perl-gdgraph/APKBUILD b/user/perl-gdgraph/APKBUILD
new file mode 100644
index 000000000..ffde91d01
--- /dev/null
+++ b/user/perl-gdgraph/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-gdgraph
+_pkgname=GDGraph
+pkgver=1.54
+pkgrel=0
+pkgdesc="Produce charts from Perl using GD"
+url="https://metacpan.org/release/GDGraph"
+arch="noarch"
+license="Artistic-1.0-Perl OR GPL-2.0-only"
+depends="perl-gd perl-gdtextutil"
+checkdepends="perl-capture-tiny perl-test-exception"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/R/RU/RUZ/GDGraph-$pkgver.tar.gz"
+builddir="$srcdir/GDGraph-$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="0dd0da5fa0e879cf2addcbfdd02ee8e9e6af715b88b451dc29fe5028f30d7ba7fa0e126d07e7bb4f9a63e40b3be95a9cc0f6c061ea8644ba0ee7fdd2a7964fce GDGraph-1.54.tar.gz"