aboutsummaryrefslogtreecommitdiffstats
path: root/main/lcms/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-09 19:02:55 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-10 02:58:00 +0000
commitab4fb8ed3e22f13d0c7b235ba46527f148ab9b92 (patch)
treee99b23bf9f0b728f514bbf845c0496318b754aaf /main/lcms/APKBUILD
parentfb58cd9b0a94c4e03bd2bad76140ea92dc7bdd5c (diff)
downloadaports-ab4fb8ed3e22f13d0c7b235ba46527f148ab9b92.tar.bz2
aports-ab4fb8ed3e22f13d0c7b235ba46527f148ab9b92.tar.xz
main/lcms: modernise, license, test suite, config
The swab configuration knob is needed for big endian builds.
Diffstat (limited to 'main/lcms/APKBUILD')
-rw-r--r--main/lcms/APKBUILD38
1 files changed, 17 insertions, 21 deletions
diff --git a/main/lcms/APKBUILD b/main/lcms/APKBUILD
index 567b6ecfaa..8df5310462 100644
--- a/main/lcms/APKBUILD
+++ b/main/lcms/APKBUILD
@@ -1,42 +1,41 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lcms
pkgver=1.19
-pkgrel=6
+pkgrel=7
pkgdesc="Lightweight color management development library/engine"
url="http://www.littlecms.com"
arch="all"
-license="custom"
+license="MIT"
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
+ configure-for-musl.patch
CVE-2013-4276.patch"
-_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
- local i
- cd "$_builddir"
- update_config_sub || return 1
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ cd "$builddir"
+ update_config_sub
+ default_prepare
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
- --prefix=/usr \
- || return 1
- make || return 1
+ --prefix=/usr
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
install -Dm 644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
@@ -45,9 +44,6 @@ liblcms() {
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
+5ef4671234cec59a8ba088937d6e4c26cfdadbe69ad2654eeb8521fd7c15f7405fc18f860722b41e2da9f55637325fe39e36c080003eed0371e6610d2e3fd264 configure-for-musl.patch
73037e6e2f8e52f402c5160a38e1d8cc6f7f5f88145d68f733f796def539902a6dfcf685eae076d1456d885c782771993dc64f78b4e381421b0e4e8730eaa1d2 CVE-2013-4276.patch"