mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-13 21:19:08 +08:00
40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
_pkgbasename=libtiff
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=4.0.6
|
|
pkgrel=2
|
|
pkgdesc="Library for manipulation of TIFF images (32-bit)"
|
|
arch=('x86_64')
|
|
url="http://www.remotesensing.org/libtiff/"
|
|
license=('custom')
|
|
depends=('lib32-libjpeg-turbo' 'lib32-zlib' $_pkgbasename=$pkgver)
|
|
makedepends=('lib32-libgl' 'lib32-libxmu' 'lib32-libxi' gcc-multilib)
|
|
options=('!libtool')
|
|
source=(ftp://ftp.remotesensing.org/pub/libtiff/tiff-${pkgver}.tar.gz
|
|
tiff-4.0.6-buffer-overflow.patch)
|
|
md5sums=('d1d2e940dea0b5ad435f21f03d96dd72'
|
|
'cdf40bed7ca47252cc7104a17ac0b4da')
|
|
|
|
prepare() {
|
|
cd tiff-${pkgver}
|
|
patch -Np1 -i ${srcdir}/tiff-4.0.6-buffer-overflow.patch
|
|
}
|
|
|
|
build() {
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
cd "${srcdir}/tiff-${pkgver}"
|
|
./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --libdir=/usr/lib32 --includedir=/usr/include/libtiff32
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/tiff-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
rm -rf "${pkgdir}"/usr/{share,bin}
|
|
mkdir -p "$pkgdir/usr/share/licenses"
|
|
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|