From 741d85f2ebf4fa894aa49e2c9a2c09fd67245b24 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Wed, 17 Apr 2024 13:56:45 +0800 Subject: [PATCH] libtiff 4.6.0-1 --- PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..be685c8 --- /dev/null +++ b/PKGBUILD @@ -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 +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 +}