diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-09 19:12:07 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-10 02:59:21 +0000 |
commit | 8953503d0b2ba78af71d42ecbc264b2fcd48963f (patch) | |
tree | 4626a95f2cf72be90e3c842279d16b2ab9a5f9cc /main/lcms2 | |
parent | 4d1f821634ba100388362ef339c9e2b59133d147 (diff) | |
download | aports-8953503d0b2ba78af71d42ecbc264b2fcd48963f.tar.bz2 aports-8953503d0b2ba78af71d42ecbc264b2fcd48963f.tar.xz |
main/lcms2: modernise, add tests, explicit configure
Diffstat (limited to 'main/lcms2')
-rw-r--r-- | main/lcms2/APKBUILD | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/main/lcms2/APKBUILD b/main/lcms2/APKBUILD index 0e9a703406..35a4daa257 100644 --- a/main/lcms2/APKBUILD +++ b/main/lcms2/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lcms2 pkgver=2.8 -pkgrel=1 +pkgrel=2 pkgdesc="Color Management Engine" url="http://www.littlecms.com/" arch="all" @@ -20,17 +20,6 @@ source="http://www.littlecms.com/lcms2-$pkgver.tar.gz # 2.8-r1: # - CVE-2016-10165 -builddir="$srcdir"/lcms2-$pkgver -prepare() { - local i - cd "$builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - build() { cd "$builddir" ./configure \ @@ -42,13 +31,21 @@ build() { --infodir=/usr/share/info \ --localstatedir=/var \ --disable-static \ - || return 1 - make || return 1 + --with-jpeg \ + --with-tiff \ + --with-zlib \ + --with-threads + make +} + +check() { + cd "$builddir" + make check } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install } utils() { |