[arch-commits] Commit in lib32-libtiff/repos (3 files)
David Runge
dvzrv at gemini.archlinux.org
Fri Jul 29 12:20:00 UTC 2022
Date: Friday, July 29, 2022 @ 12:19:59
Author: dvzrv
Revision: 1259084
archrelease: copy trunk to multilib-testing-x86_64
Added:
lib32-libtiff/repos/multilib-testing-x86_64/
lib32-libtiff/repos/multilib-testing-x86_64/PKGBUILD
(from rev 1259083, lib32-libtiff/trunk/PKGBUILD)
lib32-libtiff/repos/multilib-testing-x86_64/keys/
----------+
PKGBUILD | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
Copied: lib32-libtiff/repos/multilib-testing-x86_64/PKGBUILD (from rev 1259083, lib32-libtiff/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD (rev 0)
+++ multilib-testing-x86_64/PKGBUILD 2022-07-29 12:19:59 UTC (rev 1259084)
@@ -0,0 +1,75 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Eric Bélanger <eric at archlinux.org>
+# Contributor: dorphell <dorphell at archlinux.org>
+
+_pkgname=libtiff
+pkgname=lib32-${_pkgname}
+pkgver=4.4.0
+pkgrel=2
+pkgdesc='Library for manipulation of TIFF images (32-bit)'
+url='http://www.simplesystems.org/libtiff/'
+arch=('x86_64')
+license=('custom')
+depends=('libtiff' 'lib32-glibc' 'lib32-gcc-libs' 'lib32-libjpeg-turbo' 'lib32-zlib' 'lib32-xz' 'lib32-zstd')
+source=(
+ https://download.osgeo.org/libtiff/tiff-${pkgver}.tar.gz{,.sig}
+ # fix CVE-2022-2056 / CVE-2022-2057 / CVE-2022-2058: https://bugs.archlinux.org/task/75360
+ $pkgname-4.4.0-fpe_tiffcrop.patch::https://gitlab.com/libtiff/libtiff/-/commit/dd1bcc7abb26094e93636e85520f0d8f81ab0fab.patch
+)
+sha512sums=('78ffab7667d0feb8d38571bc482390fc6dd20b93a798ab3a8b5cc7d5ab00b44a37f67eb8f19421e4ab33ad89ab40e382128f8a4bbdf097e0efb6d9fca5ac6f9e'
+ 'SKIP'
+ '5e36f443bbbfdd1270cb1f4d3ce4b0b415d658fe7e14764b315db73606ea28e854661cda74f1c5ccb00a2247431b966b9ac5271a1e3204837f79cb6fc50bf5bf')
+b2sums=('1480aca5f9b3d4509229fb6c1b967bdeb2053c4100f21d486d9f4a375742249aa7f54d6b5ab27679075499c226a011bc65988e22c064b3986d89f2cf5b0200dc'
+ 'SKIP'
+ '2dc47541b05e6c674c3fa3f7109528d7001a494af937fc57f1862ce75dc467dd4acd6892de1bd017d182b1dcbb80242cffa27f0f3ebde3ed57ee13df5b733821')
+validpgpkeys=(
+ 'EBDFDB21B020EE8FD151A88DE301047DE1198975' # Bob Friesenhahn <bfriesen at simple.dallas.tx.us>
+ 'B1FA7D81EEB8E66399178B9733EBBFC47B3DD87D' # Even Rouault <even.rouault at spatialys.com>
+)
+
+prepare() {
+ cd tiff-${pkgver}
+ # apply patch from the source array (should be a pacman feature)
+ local src
+ for src in "${source[@]}"; do
+ src="${src%%::*}"
+ src="${src##*/}"
+ [[ $src = *.patch ]] || continue
+ echo "Applying patch $src..."
+ patch -Np1 < "../$src"
+ done
+}
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd tiff-${pkgver}
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --with-docdir=/usr/share/doc/${pkgname} \
+ --libdir=/usr/lib32 \
+ --includedir=/usr/include/libtiff32
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+check() {
+ cd tiff-${pkgver}
+ make check
+}
+
+package() {
+ depends+=('libjpeg.so')
+ cd tiff-${pkgver}
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}"/usr/{share,bin}
+ mkdir -p "${pkgdir}/usr/share/licenses"
+ ln -s ${_pkgname} "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list