[arch-commits] Commit in libtiff4/trunk (PKGBUILD)
Maxime Gauduin
alucryd at archlinux.org
Mon Mar 18 09:46:21 UTC 2019
Date: Monday, March 18, 2019 @ 09:46:20
Author: alucryd
Revision: 442435
FS#61928: libtiff4 3.9.7-3
Modified:
libtiff4/trunk/PKGBUILD
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++----------------
1 file changed, 26 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-03-18 09:36:28 UTC (rev 442434)
+++ PKGBUILD 2019-03-18 09:46:20 UTC (rev 442435)
@@ -3,17 +3,27 @@
pkgname=libtiff4
pkgver=3.9.7
-pkgrel=2
+pkgrel=3
pkgdesc='Library for manipulation of TIFF images'
-arch=('x86_64')
-url='http://www.remotesensing.org/libtiff/'
-license=('custom')
-depends=('gcc-libs' 'glibc' 'libjpeg-turbo' 'zlib')
-source=("http://download.osgeo.org/libtiff/tiff-${pkgver}.tar.gz")
-sha256sums=('f5d64dd4ce61c55f5e9f6dc3920fbe5a41e02c2e607da7117a35eb5c320cef6a')
+arch=(x86_64)
+url=http://www.simplesystems.org/libtiff/
+license=(custom)
+depends=(
+ libjpeg-turbo
+ zlib
+)
+makedepends=(git)
+source=(git+https://gitlab.com/libtiff/libtiff.git#tag=Release-v${pkgver//./-})
+sha256sums=(SKIP)
+prepare() {
+ cd libtiff
+
+ ./autogen.sh
+}
+
build() {
- cd tiff-${pkgver}
+ cd libtiff
./configure \
--prefix='/usr'
@@ -21,14 +31,14 @@
}
package() {
- cd tiff-${pkgver}
-
- make DESTDIR="${pkgdir}" install
- rm -rf "${pkgdir}"/usr/{bin,include,lib/libtiff{,xx}.{so,a},share}
- mv "${pkgdir}"/usr/lib/libtiff.so.{3,4}
- mv "${pkgdir}"/usr/lib/libtiffxx.so.{3,4}
-
- install -Dm 644 COPYRIGHT -t "${pkgdir}"/usr/share/licenses/libtiff4/
+ make DESTDIR="${pkgdir}" -C libtiff install
+ rm -rf "${pkgdir}"/usr/{bin,include,lib/libtiff{,xx}.{a,so,so.3},share}
+ # Rename 3.9.7 to 4.3.7, 3.6.x was the first release with the unintentional ABI change
+ mv "${pkgdir}"/usr/lib/libtiff.so.{3.9.7,4.3.7}
+ mv "${pkgdir}"/usr/lib/libtiffxx.so.{3.9.7,4.3.7}
+ ln -s libtiff.so.4.3.7 "${pkgdir}"/usr/lib/libtiff.so.4
+ ln -s libtiffxx.so.4.3.7 "${pkgdir}"/usr/lib/libtiffxx.so.4
+ install -Dm 644 libtiff/COPYRIGHT -t "${pkgdir}"/usr/share/licenses/libtiff4/
}
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list