diff options
author | smls | 2015-08-23 13:47:15 +0200 |
---|---|---|
committer | smls | 2015-08-23 13:52:58 +0200 |
commit | 1b14183f6fc1ce5af9ecec5ec8ecfbbf81693b74 (patch) | |
tree | 69a032b82821fcf2179c75566c35c816107f944f /PKGBUILD | |
parent | cc89d411891f19d844f95dd3e126c09cde151acd (diff) | |
download | aur-1b14183f6fc1ce5af9ecec5ec8ecfbbf81693b74.tar.gz |
general clean-up
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 44 |
1 files changed, 20 insertions, 24 deletions
@@ -14,38 +14,34 @@ license=('custom') depends=('libjpeg' 'zlib' 'libtiff') makedepends=('freeglut') optdepends=('freeglut: for using tiffgt') -source=(http://download.osgeo.org/libtiff/tiff-${pkgver}.tar.gz) +source=("http://download.osgeo.org/libtiff/tiff-$pkgver.tar.gz") sha256sums=('f5d64dd4ce61c55f5e9f6dc3920fbe5a41e02c2e607da7117a35eb5c320cef6a') -options=('!libtool') provides=('libtiff3' 'libtiff4') build() { - cd "${srcdir}/tiff-${pkgver}" - ./configure --prefix=/usr - make + cd tiff-$pkgver + ./configure --prefix=/usr + make } check() { - cd "${srcdir}/tiff-${pkgver}" - make check + cd tiff-$pkgver + make check } package() { - cd "${srcdir}/tiff-${pkgver}" - make DESTDIR="${pkgdir}" install - install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - # Cleaning binaries and headers - rm -rvf ${pkgdir}/usr/bin - rm -rvf ${pkgdir}/usr/include - # Remove documentation - rm -rvf ${pkgdir}/usr/share/man - rm -rvf ${pkgdir}/usr/share/doc - # Fix libraries - cd ${pkgdir}/usr/lib/ - # Remove main library, this is supplied by libtiff package - rm -vf libtiff.{a,so} libtiffxx.{a,so} - # http://www.asmail.be/msg0055009514.html - ln -svf libtiff.so.${pkgver} libtiff.so.4 - ln -svf libtiffxx.so.${pkgver} libtiffxx.so.4 + cd tiff-$pkgver + make DESTDIR="$pkgdir" install + install -D -m644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + # Remove files which are already installed by the libtiff package + rm -f "$pkgdir"/usr/lib/libtiff{,xx}.{a,so} + rm -rf "$pkgdir"/usr/bin + rm -rf "$pkgdir"/usr/include + rm -rf "$pkgdir"/usr/share/man + rm -rf "$pkgdir"/usr/share/doc + + # see http://www.asmail.be/msg0055009514.html + ln -sf libtiff.so.$pkgver "$pkgdir"/usr/lib/libtiff.so.4 + ln -sf libtiffxx.so.$pkgver "$pkgdir"/usr/lib/libtiffxx.so.4 } - |