aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-gdgraph/APKBUILD
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2015-10-29 15:55:14 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-10-29 15:37:19 +0000
commita51d9be7c86f8456860278c45997db4b32fe17e2 (patch)
treedc27ca5739b19fe8da45bd3b6b5eeb60a0b7b58c /main/perl-gdgraph/APKBUILD
parent5689ac03e290672c50dd92060f8b88b4a6ce51b9 (diff)
downloadaports-a51d9be7c86f8456860278c45997db4b32fe17e2.tar.bz2
aports-a51d9be7c86f8456860278c45997db4b32fe17e2.tar.xz
main/perl-gdgraph: new aport
Diffstat (limited to 'main/perl-gdgraph/APKBUILD')
-rw-r--r--main/perl-gdgraph/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-gdgraph/APKBUILD b/main/perl-gdgraph/APKBUILD
new file mode 100644
index 0000000000..7fdc7516c0
--- /dev/null
+++ b/main/perl-gdgraph/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+pkgname=perl-gdgraph
+_pkgreal=GDGraph
+pkgver=1.49
+pkgrel=0
+pkgdesc="Produces charts with GD"
+url="http://search.cpan.org/dist/GDGraph/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-gdtextutil perl-gd"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/R/RU/RUZ/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="8bb270a30fea27491302b39b701b3d4e GDGraph-1.49.tar.gz"
+sha256sums="d26538c827e35c1d4b27f3c045b60f1ab6b45401c54a87e86103cd7c2374cff5 GDGraph-1.49.tar.gz"
+sha512sums="720cc51dda41963be087bb39418642f75dade1bbab54cd4d788c18c9328f3fbd6a5c0f73027bb0be64d44cd94b0c5f2d67c48d4b0c3c34736ac8f7bc8cba95ab GDGraph-1.49.tar.gz"