pkgname=libtiff pkgver=4.7.0 pkgrel=1 pkgdesc="Library for manipulation of TIFF images" arch=('x86_64') url="http://www.simplesystems.org/libtiff" license=('custom') depends=('gcc-libs' 'glibc' 'libjpeg-turbo' 'zlib' 'xz' 'zstd') makedepends=('freeglut' 'cmake') source=(https://download.osgeo.org/libtiff/${pkgname#lib}-${pkgver}.tar.gz) sha256sums=(67160e3457365ab96c5b3286a0903aa6e78bdc44c4bc737d2e486bcecb6ba976) build() { cd ${pkgname#lib}-${pkgver} local cmake_args=( -B flarebird-build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib64 -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${pkgname}-${pkgver} ) cmake ${cmake_args[@]} cmake --build flarebird-build } package() { cd ${pkgname#lib}-${pkgver} DESTDIR=${pkgdir} cmake --install flarebird-build }