75 lines
2.2 KiB
Bash
75 lines
2.2 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=libtiff
|
|
_pkgname=tiff
|
|
pkgver=4.6.0
|
|
pkgrel=01
|
|
pkgdesc='Library for manipulation of TIFF images with zstd disabled'
|
|
url="http://www.simplesystems.org/libtiff"
|
|
depends=('gcc-libs' 'glibc' 'jbigkit' 'libjpeg-turbo' 'libjpeg.so' 'zlib' 'xz' 'zstd')
|
|
makedepends=('freeglut' 'glu' 'mesa')
|
|
optdepends=('freeglut: for using tiffgt')
|
|
provides=('libtiff.so' 'libtiffxx.so')
|
|
source=("https://download.osgeo.org/libtiff/$_pkgname-$pkgver.tar.gz"{,.sig})
|
|
# https://download.osgeo.org/libtiff/tiff-4.6.0rc1.tar.gz
|
|
|
|
prepare() {
|
|
cd tiff-${pkgver//rc*/}
|
|
|
|
# apply patch from the source array (should be a pacman feature)
|
|
local src
|
|
for src in "${source[@]}"; do
|
|
src="${src%%::*}"
|
|
src="${src##*/}"
|
|
[[ $src = *.patch ]] || continue
|
|
echo "Applying patch $src..."
|
|
patch -Np1 < "../$src"
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd tiff-${pkgver//rc*/}
|
|
# cd ${_pkgname}-${pkgver}
|
|
|
|
./configure \
|
|
--prefix='/usr' \
|
|
--bindir='/usr/bin' \
|
|
--libdir='/usr/lib' \
|
|
--sysconfdir=/etc \
|
|
--enable-ld-version-script \
|
|
--mandir=/usr/share/man \
|
|
--with-docdir=/usr/share/doc/${pkgname} \
|
|
--disable-zstd
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd tiff-${pkgver//rc*/}
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd tiff-${pkgver//rc*/}
|
|
make DESTDIR="${pkgdir}" install
|
|
install -Dm644 LICENSE.md -t "${pkgdir}"/usr/share/licenses/${pkgname}
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('custom')
|
|
|
|
validpgpkeys=(EBDFDB21B020EE8FD151A88DE301047DE1198975 # Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
|
|
B1FA7D81EEB8E66399178B9733EBBFC47B3DD87D) # Even Rouault <even.rouault@spatialys.com>
|
|
|
|
sha256sums=(88b3979e6d5c7e32b50d7ec72fb15af724f6ab2cbf7e10880c360a77e4b5d99a # tiff-4.6.0.tar.gz
|
|
85d9797cbdeabe82467291bc772a20f047eb5fe9c94bce63c2d3492576119be9) # tiff-4.6.0.tar.gz.sig
|
|
|
|
## c38eaab66ecb374b122080eea932ae43335ae9000a083d32342c61b609bed441 libtiff-4.6.0-01-x86_64.pkg.tar.lz
|