aboutsummaryrefslogblamecommitdiffstats
path: root/main/gd/APKBUILD
blob: d417667f50ad8f88fa9f402de2ea8142cfabcdd6 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                           
          

            
                    
                                                                   
                              
          
                
                                                                                 
                                         
                                                                                                     
                                    

                                           
 
           


                      
             


                     
             
                        
 
         



                                 


                                           
                                      

                                

 
         
                  

 
           
                                      

 
       

                               

                                                          

 
                                                                                                                                                                 
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=gd
pkgver=2.3.1
pkgrel=0
_pkgreal=lib$pkgname
pkgdesc="Library for the dynamic creation of images by programmers"
url="https://libgd.github.io/"
arch="all"
license="custom"
makedepends="bash libpng-dev libjpeg-turbo-dev libwebp-dev freetype-dev zlib-dev"
subpackages="$pkgname-dev $_pkgreal:libs"
source="https://github.com/$_pkgreal/$_pkgreal/releases/download/gd-$pkgver/$_pkgreal-$pkgver.tar.xz"
builddir="$srcdir/$_pkgreal-$pkgver"
# https://github.com/libgd/libgd/issues/359
options="!check"

# secfixes:
#   2.3.0-r0:
#     - CVE-2019-11038
#     - CVE-2018-14553
#   2.2.5-r2:
#     - CVE-2018-5711
#     - CVE-2019-6977
#     - CVE-2019-6978
#   2.2.5-r1:
#     - CVE-2018-1000222

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--without-fontconfig \
		--disable-werror
	make
}

check() {
	make check
}

package() {
	DESTDIR="$pkgdir" make install
}

dev() {
	default_dev
	depends="$pkgname perl"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/bdftogd "$subpkgdir"/usr/bin/
}

sha512sums="0b96406a1d62129d7d63f78fc4558062c223a3bfbf9719be86362fd922b72b5dac294524dd1b0a996a4a7a709ee9d2dfc790ee32564add70adad41d044a0ed80  libgd-2.3.1.tar.xz"