libtiff 4.6.0-1

This commit is contained in:
xhaa123 2024-04-17 13:56:45 +08:00
commit 741d85f2eb

33
PKGBUILD Normal file
View File

@ -0,0 +1,33 @@
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=libtiff
pkgver=4.6.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' 'ninja')
source=(https://download.osgeo.org/libtiff/${pkgname//lib/}-${pkgver}.tar.gz)
sha256sums=(88b3979e6d5c7e32b50d7ec72fb15af724f6ab2cbf7e10880c360a77e4b5d99a)
build() {
cd ${pkgname//lib/}-${pkgver}
cmake -G Ninja -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${pkgname}-${pkgver}
ninja -C build
}
package() {
cd ${pkgname//lib/}-${pkgver}
DESTDIR=${pkgdir} ninja -C build install
}