summaryrefslogblamecommitdiff
path: root/user/perl-gd/APKBUILD
blob: 74d4457f4e80c4c38ac5a3963151860fba01bf4b (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      
                                                          

               


                               
           
        


                                             
                                       
              
                                   
                                                                                      

                                        
                                                                                          

                                    
         
                                                                  
                                                                 



            



                 



                                                                           
                                                                                                                                                             
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-gd
_pkgreal=GD
_author=RURBAN 
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=2.78
pkgrel=0
pkgdesc="Perl module for GD graphics library"
url="https://metacpan.org/release/GD"
arch="all"
license="GPL-1.0+ OR Artistic-1.0-Perl"
depends="perl"
checkdepends="perl-test-nowarnings"
makedepends="perl-dev perl-extutils-pkgconfig freetype-dev libgd-dev libjpeg-turbo-dev
	libpng-dev libwebp-dev zlib-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS="$(perl -MConfig -E 'say $Config{ccflags}')"
	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="ef3df42c003f105fd1c313ea9e8b8b1e75912b4fdb274e73f2e4f5664a0adb8479a2e62fae5a493e37c36865f9dc37207d2d31e96316eb18a3c5384e07858591  GD-2.78.tar.gz"