aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-gdgraph/APKBUILD
blob: 305ad898c7c98f46e60bb5ffb4c4175552a55be7 (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
36
37
38
39
40
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.54
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="perl-test-exception perl-capture-tiny"
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="38c6a188519e6272e9b2b722b315c3d8  GDGraph-1.54.tar.gz"
sha256sums="b96f5c10b656c17d16ab65a1777c908297b028d3b6815f6d54b2337f006bfa4f  GDGraph-1.54.tar.gz"
sha512sums="0dd0da5fa0e879cf2addcbfdd02ee8e9e6af715b88b451dc29fe5028f30d7ba7fa0e126d07e7bb4f9a63e40b3be95a9cc0f6c061ea8644ba0ee7fdd2a7964fce  GDGraph-1.54.tar.gz"