SHARE
TWEET

Untitled

a guest Feb 16th, 2020 80 in 130 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer:  Gabriel Souza Franco <Z2FicmllbGZyYW5jb3NvdXphQGdtYWlsLmNvbQ==>
  2. # Contributor: Florian Pritz
  3. # Contributor: Christian Hesse <mail@eworm.de>
  4. # Contributor: Thomas Dziedzic < gostrc at gmail >
  5. # Contributor: mickele
  6. # Contributor: marcus fritzsch <fritschy@googlemail.com>
  7.  
  8. pkgbase=coin
  9. pkgname=(coin coin-docs)
  10. pkgver=4.0.0
  11. pkgrel=1
  12. pkgdesc='A high-level 3D graphics toolkit on top of OpenGL'
  13. url='https://github.com/coin3d/coin'
  14. license=('GPL')
  15. arch=('i686' 'x86_64')
  16. depends=('libgl')
  17. makedepends=('cmake' 'doxygen' 'glu' 'boost')
  18. optdepends=('openal: sound/dynamic linking support'
  19.             'fontconfig: dynamic linking support'
  20.             'zlib: dynamic linking support'
  21.             'freetype2: dynamic linking support')
  22. source=("https://github.com/coin3d/coin/archive/Coin-$pkgver.tar.gz"
  23.         "coin-remove-cpack.patch::https://github.com/coin3d/coin/commit/be8e3d5.patch")
  24. sha256sums=('b00d2a8e9d962397cf9bf0d9baa81bcecfbd16eef675a98c792f5cf49eb6e805'
  25.             'c77a6bbcaef4d65b45eac7711d3be713d4d23699d63a38f57030febb4b16e24d')
  26.  
  27. prepare() {
  28.     cd coin-Coin-$pkgver
  29.  
  30.     patch -Np1 -i ../coin-remove-cpack.patch
  31. }
  32.  
  33. build() {
  34.     mkdir -p build
  35.     cd build
  36.  
  37.     cmake ../coin-Coin-$pkgver \
  38.         -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" \
  39.         -DCMAKE_INSTALL_LIBDIR=lib \
  40.         -DCOIN_THREADSAFE=ON \
  41.         -DCOIN_BUILD_DOCUMENTATION=ON \
  42.         -DCOIN_BUILD_DOCUMENTATION_CHM=OFF \
  43.         -DCOIN_BUILD_DOCUMENTATION_MAN=ON \
  44.         -DUSE_EXTERNAL_EXPAT=ON
  45.  
  46.     cmake --build .
  47. }
  48.  
  49. package_coin() {
  50.     optdepends+=('coin-docs: Coin documentation')
  51.  
  52.     cd build
  53.  
  54.     cmake --install .
  55.  
  56.     # final adjustments
  57.     rm -rf "$pkgdir/usr/share/doc"
  58.     for _FILE in threads errors events; do
  59.         mv "$pkgdir/usr/share/man/man3/$_FILE.3" "$pkgdir/usr/share/man/man3/coin-$_FILE.3"
  60.     done
  61. }
  62.  
  63. package_coin-docs() {
  64.     pkgdesc='A high-level 3D graphics toolkit on top of OpenGL (docs)'
  65.     arch=(any)
  66.     depends=()
  67.  
  68.     cd build/src/doc
  69.  
  70.     cmake --install .
  71.     rm -rf "$pkgdir/usr/share/man"
  72. }
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