aboutsummaryrefslogtreecommitdiffstats
path: root/main/tiff/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/tiff/APKBUILD')
-rw-r--r--main/tiff/APKBUILD111
1 files changed, 79 insertions, 32 deletions
diff --git a/main/tiff/APKBUILD b/main/tiff/APKBUILD
index 148daa5140a..8cb8a133bc7 100644
--- a/main/tiff/APKBUILD
+++ b/main/tiff/APKBUILD
@@ -2,22 +2,75 @@
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=tiff
-pkgver=4.2.0
-pkgrel=1
+pkgver=4.6.0t
+pkgrel=0
pkgdesc="Provides support for the Tag Image File Format or TIFF"
url="https://gitlab.com/libtiff/libtiff"
arch="all"
license="libtiff"
-depends_dev="zlib-dev libjpeg-turbo-dev libwebp-dev xz-dev zstd-dev"
-makedepends="libtool autoconf automake $depends_dev"
-checkdepends="diffutils"
-subpackages="$pkgname-doc $pkgname-dev $pkgname-tools libtiffxx:_libtiffxx"
-source="https://gitlab.com/libtiff/libtiff/-/archive/v$pkgver/libtiff-v$pkgver.tar.gz
- CVE-2018-12900.patch
+depends_dev="
+ zlib-dev
+ zstd-dev
+ "
+makedepends="
+ $depends_dev
+ cmake
+ libjpeg-turbo-dev
+ libwebp-dev
+ python3
+ samurai
"
-builddir="$srcdir/libtiff-v$pkgver"
+checkdepends="diffutils"
+subpackages="$pkgname-doc $pkgname-dev $pkgname-tools libtiffxx"
+source="http://www.libtiff.org/downloads/tiff-$pkgver.tar.gz"
# secfixes:
+# 4.5.0-r5:
+# - CVE-2023-0795
+# - CVE-2023-0796
+# - CVE-2023-0797
+# - CVE-2023-0798
+# - CVE-2023-0799
+# - CVE-2023-0800
+# - CVE-2023-0801
+# - CVE-2023-0802
+# - CVE-2023-0803
+# - CVE-2023-0804
+# 4.5.0-r3:
+# - CVE-2022-48281
+# 4.5.0-r0:
+# - CVE-2022-2953
+# - CVE-2022-3213
+# - CVE-2022-3570
+# - CVE-2022-3597
+# - CVE-2022-3598
+# - CVE-2022-3599
+# - CVE-2022-3626
+# - CVE-2022-3627
+# - CVE-2022-3970
+# 4.4.0-r1:
+# - CVE-2022-2056
+# - CVE-2022-2057
+# - CVE-2022-2058
+# - CVE-2022-2519
+# - CVE-2022-2520
+# - CVE-2022-2521
+# - CVE-2022-34526
+# 4.4.0-r0:
+# - CVE-2022-2867
+# - CVE-2022-2868
+# - CVE-2022-2869
+# 4.3.0-r1:
+# - CVE-2022-0561
+# - CVE-2022-0562
+# - CVE-2022-0865
+# - CVE-2022-0891
+# - CVE-2022-0907
+# - CVE-2022-0908
+# - CVE-2022-0909
+# - CVE-2022-0924
+# - CVE-2022-22844
+# - CVE-2022-34266
# 4.2.0-r0:
# - CVE-2020-35521
# - CVE-2020-35522
@@ -68,42 +121,36 @@ builddir="$srcdir/libtiff-v$pkgver"
# 4.0.7-r1:
# - CVE-2017-5225
-prepare() {
- default_prepare
- autoreconf -fi
-}
-
build() {
- ./configure \
- --build=$CBUILD \
- --host=$CHOST \
- --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --enable-cxx
- make
+ CFLAGS="$CFLAGS -flto=auto" \
+ CXXFLAGS="$CXXFLAGS -flto=auto" \
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=MinSizeRel
+
+ cmake --build build
}
check() {
- make check
+ ctest --test-dir build --output-on-failure -j2
}
package() {
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --install build
}
-_libtiffxx() {
+libtiffxx() {
pkgdesc="C++ binding to libtiff"
- mkdir -p "$subpkgdir"/usr/lib/
- mv "$pkgdir"/usr/lib/libtiffxx.so.* "$subpkgdir"/usr/lib/
+
+ amove usr/lib/libtiffxx.so.*
}
tools() {
pkgdesc="Command-line utility programs for manipulating TIFF files"
- mkdir -p "$subpkgdir"/usr/
- mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+
+ amove usr/bin
}
-sha512sums="d47578feffcc1ecdac2d188c1df4faf05865cd9075b4d01c708a0e71928cce3b60850738a6b7ace334ae00e96ccffc6189ed91b9be81840a1d2b040777010dd5 libtiff-v4.2.0.tar.gz
-c321f1d4e5d334cdb3b0800299e8165055c040c0c030220769ccfdadcc7fd35a0f3231115f44dc86fe5e34f32eafe1074aa85495a744717f8fc10c0cab2ab085 CVE-2018-12900.patch"
+sha512sums="
+bd877b4311d58692e46d77731bdc1cf701b7486b4dbc4d1e77c1e27fbe356bfaf2655cfc44020c92f6cfbc269ccd17722ee9f8785bf367624f227a85b6a298b0 tiff-4.6.0t.tar.gz
+"