core/libtiff/PKGBUILD

32 lines
755 B
Bash
Raw Normal View History

2010-03-14 23:48:48 +08:00
pkgname=libtiff
2018-01-21 04:20:14 +08:00
pkgver=4.0.9
pkgrel=1
2013-12-19 03:11:54 +08:00
pkgdesc='Library for manipulation of TIFF images'
arch=('x86_64')
2010-03-14 23:48:48 +08:00
url="http://www.remotesensing.org/libtiff/"
license=('custom')
2015-12-12 04:26:47 +08:00
depends=('libjpeg-turbo' 'zlib' 'xz')
makedepends=('freeglut' 'glu' 'mesa' 'jbigkit')
2010-03-14 23:48:48 +08:00
optdepends=('freeglut: for using tiffgt')
2018-01-21 04:20:14 +08:00
source=(http://download.osgeo.org/libtiff/tiff-${pkgver}.tar.gz)
sha1sums=('87d4543579176cc568668617c22baceccd568296')
2016-04-24 12:54:01 +08:00
2010-03-14 23:48:48 +08:00
build() {
2015-12-12 04:26:47 +08:00
cd tiff-${pkgver}
2013-12-19 03:11:54 +08:00
./configure --prefix=/usr
2018-01-21 04:20:14 +08:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2013-12-19 03:11:54 +08:00
make
}
check() {
2015-12-12 04:26:47 +08:00
cd tiff-${pkgver}
2013-12-19 03:11:54 +08:00
make check
2010-10-09 08:07:13 +08:00
}
package() {
2015-12-12 04:26:47 +08:00
cd tiff-${pkgver}
2013-12-19 03:11:54 +08:00
make DESTDIR="${pkgdir}" install
install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2010-03-14 23:48:48 +08:00
}