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

                                                           
                
             
        
                                         
                               
          
                              
                
                                                                   
                                                       
                                                                                   
                                                  
                      
         
 
           

                      

                     



                     
         



                                 


                                           
                                 
                               
                              

                                        
            
 
 






                                                      
           
                                      

 
            
                                                                                                                                                        
                                                                                                                                                                            

                                                                                                                                                
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=freetype
pkgver=2.11.1
pkgrel=0
pkgdesc="TrueType font rendering library"
url="https://www.freetype.org/"
arch="all"
license="FTL GPL-2.0-or-later"
options="!check"
makedepends="$depends_dev brotli-dev zlib-dev libpng-dev bzip2-dev"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://download.savannah.gnu.org/releases/freetype/freetype-$pkgver.tar.xz
	0001-Enable-table-validation-modules.patch
	subpixel.patch
	"

# secfixes:
#   2.10.4-r0:
#     - CVE-2020-15999
#   2.9-r1:
#     - CVE-2018-6942
#   2.7.1-r1:
#     - CVE-2017-8105
#     - CVE-2017-8287

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-static \
		--with-brotli \
		--with-bzip2 \
		--with-png \
		--enable-freetype-config
	make
}

static() {
	pkgdesc="$pkgname static libraries"

	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
}

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

sha512sums="
0848678482fbe20603a866f02da82c91122014d6f815ba4f1d9c03601c32e3ceb781f721c2b4427b6117d7c9742018af8dbb26566faf018595c70b50f8db3f08  freetype-2.11.1.tar.xz
580fe59acddfd41966e387bdb6a88336b8bc119cc3d60d8689be20c96fb0dd07c5138ea31f6cb9c854f497ecb41c3adc49eb3ec16a34b2e010e8294851770763  0001-Enable-table-validation-modules.patch
72883fa203fd2552a7b1b8c39b4aaa68d407c62c289236031cd0fa1c8cdc6ad38e90d3b53f8ee682064986d09c9455961f4941c80566b150d15d5539a716c190  subpixel.patch
"