aboutsummaryrefslogtreecommitdiffstats
path: root/main/lcms/APKBUILD
blob: 8f781e31dff45a936c7b55327b092af750625cc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lcms
pkgver=1.19
pkgrel=5
pkgdesc="Lightweight color management development library/engine"
url="http://www.littlecms.com"
arch="all"
license="custom"
depends=
makedepends="tiff-dev libjpeg-turbo-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc liblcms"
source="http://downloads.sourceforge.net/project/lcms/lcms/$pkgver/lcms-$pkgver.tar.gz
	CVE-2013-4276.patch"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm 644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
	rm "$pkgdir"/usr/lib/*.la
}

liblcms() {
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/liblcms.so.* "$subpkgdir"/usr/lib/
}

md5sums="8af94611baf20d9646c7c2c285859818  lcms-1.19.tar.gz
fa1db4861cfa05f4c4a2c826e1c35502  CVE-2013-4276.patch"
sha256sums="80ae32cb9f568af4dc7ee4d3c05a4c31fc513fc3e31730fed0ce7378237273a9  lcms-1.19.tar.gz
cd10cc5ce791ae782b1257e6181a71cbdb685b705779c9ef2ceffc7fb2021bd0  CVE-2013-4276.patch"
sha512sums="85a55ad0673f0df2aaa80d18caa50314319f8da5ee4d84eed919059d0dad9861d684ef6353ce0ec6f9892a4603ce8e8e12f84d46858e23f52846b8aefd3cf449  lcms-1.19.tar.gz
73037e6e2f8e52f402c5160a38e1d8cc6f7f5f88145d68f733f796def539902a6dfcf685eae076d1456d885c782771993dc64f78b4e381421b0e4e8730eaa1d2  CVE-2013-4276.patch"