mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 02:17:14 +08:00
37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=libtiff
|
|
pkgver=3.9.4
|
|
pkgrel=1
|
|
pkgdesc="Library for manipulation of TIFF images"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.remotesensing.org/libtiff/"
|
|
license=('custom')
|
|
depends=('libjpeg' '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)
|
|
md5sums=('2006c1bdd12644dbf02956955175afd6' 'ff61077408727a82281f77a94f555e2a')
|
|
sha1sums=('a4e32d55afbbcabd0391a9c89995e8e8a19961de' 'eadce8c8bd72ea9c74f35300bf299131813b0c8b')
|
|
|
|
build() {
|
|
cd "${srcdir}/tiff-${pkgver}"
|
|
patch -p1 < ../libtiff-CVE-2009-2285.patch || return 1
|
|
./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man || return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/tiff-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install || return 1
|
|
install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
|
|
}
|