mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 04:14:39 +08:00
32 lines
1.3 KiB
Bash
32 lines
1.3 KiB
Bash
# $Id: PKGBUILD 63238 2010-01-16 18:42:34Z jgc $
|
|
# Maintainer: Eric Belanger <eric@archlinux.org>
|
|
# Contributor: dorphell <dorphell@archlinux.org>
|
|
|
|
pkgname=libtiff
|
|
pkgver=3.9.2
|
|
pkgrel=2
|
|
pkgdesc="Library for manipulation of TIFF images"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.remotesensing.org/libtiff/"
|
|
license=('custom')
|
|
depends=('libjpeg>=8' 'zlib')
|
|
makedepends=('libgl' 'freeglut' 'libxmu' 'libxi')
|
|
optdepends=('freeglut: for using tiffgt')
|
|
options=('!libtool')
|
|
source=(ftp://ftp.remotesensing.org/pub/libtiff/tiff-${pkgver}.tar.gz \
|
|
libtiff-CVE-2009-2285.patch tiff-3.9.0-CVE-2009-2347.patch)
|
|
md5sums=('93e56e421679c591de7552db13384cb8' 'ff61077408727a82281f77a94f555e2a'\
|
|
'867fa3ec83e748abf247f9706ef13f9a')
|
|
sha1sums=('5c054d31e350e53102221b7760c3700cf70b4327' 'eadce8c8bd72ea9c74f35300bf299131813b0c8b'\
|
|
'cf8b68ed8f218d2429ab296c2033dc0292efe299')
|
|
|
|
build() {
|
|
cd "${srcdir}/tiff-${pkgver}"
|
|
patch -p1 < ../libtiff-CVE-2009-2285.patch || return 1
|
|
patch -p0 < ../tiff-3.9.0-CVE-2009-2347.patch || return 1
|
|
./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man || return 1
|
|
make || return 1
|
|
make DESTDIR="${pkgdir}" install || return 1
|
|
install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
|
|
}
|