aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-gdgraph/APKBUILD
blob: 5b677bb3e0232d416710d089d731a115b7a6211a (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                      
           
        
                                 
                                           


                                     
                                                       


                                       
                                                                               




















                                                                           
                                                                                                                                                                  
# 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=1
pkgdesc="Produces charts with GD"
url="https://metacpan.org/release/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="https://cpan.metacpan.org/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
}

sha512sums="0dd0da5fa0e879cf2addcbfdd02ee8e9e6af715b88b451dc29fe5028f30d7ba7fa0e126d07e7bb4f9a63e40b3be95a9cc0f6c061ea8644ba0ee7fdd2a7964fce  GDGraph-1.54.tar.gz"