aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-gdgraph/APKBUILD
blob: 7fdc7516c026f53c35c65975c8d4ba33c11ea5a0 (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.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"