summaryrefslogblamecommitdiff
path: root/user/perl-gdgraph/APKBUILD
blob: 9244c5cd01a43925680ded0bdc0d2007b2c9a5cd (plain) (tree)
1
2
3
4
5
6
7
                                                  
                                                          
                    



                               




                                           

                                                                      
                                      


                                                    

                                                                                        

         




                                                                 



                 




                                                                                                                                                                  
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-gdgraph
_pkgreal=GDGraph
_author=RUZ
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.54
pkgrel=0
pkgdesc="Produce charts from Perl using GD"
url="https://metacpan.org/release/GDGraph"
arch="noarch"
options="!check" # testsuite exercises library rather than just itself
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-gd perl-gdtextutil"
checkdepends="perl-capture-tiny perl-test-exception"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

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