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

                                                   

           
                                 
                              
          
                          

                                                 
                                                      
                                                     
         
 
           

                      
           
                      
 
         








                                           







                              
                  


           
                                      







                                                
                                                                                                                                                                
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lcms2
pkgver=2.11
pkgrel=0
pkgdesc="Color Management Engine"
url="http://www.littlecms.com"
arch="all"
license="MIT GPL-3.0-only"
depends_dev="libjpeg-turbo-dev tiff-dev zlib-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
source="http://www.littlecms.com/lcms2-$pkgver.tar.gz
	"

# secfixes:
#   2.9-r1:
#     - CVE-2018-16435
#   2.8-r1:
#     - CVE-2016-10165

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static \
		--with-jpeg \
		--with-tiff \
		--with-zlib \
		--with-threads
	make
}

check() {
	make check
}

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

utils() {
	pkgdesc="Utility applications for lcms2"
	mkdir -p "$subpkgdir"/usr/
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

sha512sums="96643da4770c86eb56f454e605d7661024afb33f4e621c23c590307c31a0eec02100eca4f4ac6718639d99d750ed4834a9b2523e910469da717c3ddd78b4b50e  lcms2-2.11.tar.gz"