SHARE
TWEET

PKGBUILD

rsevero May 14th, 2019 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: detrito <detrito@inventati.org>
  2. # Contributor: Thomas Holder <thomas@thomas-holder.de>
  3. # Contributor: detrito <detrito@inventati.org>
  4. # Contributor: Rodrigo Severo <rsev@protonmail.com>
  5.  
  6. pkgname=therion
  7. pkgver=5.4.4
  8. pkgrel=2
  9. pkgdesc="A cave surveying software"
  10. arch=('x86_64' 'i686')
  11. url="http://therion.speleo.sk"
  12. license=('GPL2')
  13.  
  14. # avoid parallel-execution errors
  15. MAKEFLAGS="-j1"
  16.  
  17. depends=('tk' 'bwidget' 'texlive-core' 'imagemagick' 'wxgtk' 'glu' 'vtk'
  18.     'webkitgtk2')
  19.  
  20. optdepends=('libjpeg-turbo' 'libpng' 'zlib')
  21.  
  22. source=("http://github.com/therion/therion/archive/v${pkgver}.tar.gz"
  23.     "loch_vtk7.patch"
  24.     "make_install.patch"
  25.     "therion_ini.patch")
  26.  
  27. sha256sums=('5d3d79157a23e8758e9259425d706b9d7861993971ba630525e1665574024d85'
  28.     '81cd6c75a74897831edd4116bb97c71090023abbb14725b96d2a219f67cb5613'
  29.     'cd0ef172f5f4a577a96ea4b0793d15382e81933cef6f8b3203551c10a4b8850f'
  30.     '0639b0c4c9660af33675bf948ca4678d441167f77f7818cc015b7738a53fb8f3'
  31.     )
  32.  
  33. prepare() {
  34.   cd "${pkgname}-${pkgver}"
  35.  
  36.   # patch to compile loch with VTK 7.1
  37.   patch -p0 -i ${srcdir}/loch_vtk7.patch
  38.  
  39.   # patch to install in $pkgdir
  40.   patch -p0 -i ${srcdir}/make_install.patch
  41.  
  42.   # patch to get UTF8 and available fonts
  43.   patch -p0 -i ${srcdir}/therion_ini.patch
  44.  
  45.   # path to fix loch compilation
  46.   sed -i.bak 's/-DLXLINUX//' loch/Makefile
  47.   sed -i.bak 's/^POBJECTS =.*/POBJECTS =/' loch/Makefile
  48.   sed -i.bak 's/freetype-config --cflags/pkg-config --cflags freetype2/' loch/Makefile
  49. }
  50.  
  51. build() {
  52.   cd "${pkgname}-${pkgver}"
  53.  
  54.   make PREFIX=/usr
  55.  }
  56.  
  57.  package() {
  58.   cd "${pkgname}-${pkgver}"
  59.   make PREFIX="${pkgdir}" install
  60. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top