PKGBUILD 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Maintainer (Arch): Alexander F. Rødseth <xyproto@archlinux.org>
  2. # Contributor (Arch): Tom Newsom <Jeepster@gmx.co.uk>
  3. # Contributor (Arch): tobias <tobias@archlinux.org>
  4. # Contributor (Arch): red_over_blue
  5. # Contributor (Arch): neri
  6. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  7. # Contributor (Hyperbola): Márcio Silva <coadde@hyperbola.info>
  8. # Don't build povray before 3.7 version (that ones are nonfree software)
  9. _pkgname=povray-libre
  10. pkgname=povray
  11. pkgver=3.7.0.8
  12. _v=${pkgver%.*.*} # 3.7
  13. pkgrel=5
  14. pkgrel+=.parabola1
  15. epoch=2
  16. pkgdesc='Script based raytracer for creating 3D graphics'
  17. pkgdesc+=', without nonfree documentation'
  18. arch=('x86_64')
  19. arch+=('i686' 'armv7h')
  20. license=('AGPL3')
  21. url='http://povray.org/' # bad https cert
  22. depends=('boost-libs' 'libpng' 'libtiff' 'openexr')
  23. makedepends=('boost' 'git' 'glu')
  24. conflicts=("$_pkgname")
  25. replaces=("$_pkgname")
  26. backup=("etc/povray/$_v/povray.conf"
  27. "etc/povray/$_v/povray.ini")
  28. source=("$pkgname-$pkgver.tar.gz::https://github.com/POV-Ray/povray/archive/v$pkgver.tar.gz")
  29. sha512sums=('4de3090cb4c1f7d8004bf5548297f4b95496b3265e5b8b5c861f331bda20de06c9d1ce67858a233740f8091e61315abdd3e519c8db5557b6b37c7a864b85d1c6')
  30. prepare() {
  31. # remove nonfree documentation
  32. rm -rv "$pkgname-$pkgver"/doc
  33. cd "$pkgname-$pkgver/unix"
  34. sed 's/automake --w/automake --add-missing --w/g' -i prebuild.sh
  35. sed 's/dist-bzip2/dist-bzip2 subdir-objects/g' -i configure.ac
  36. ./prebuild.sh
  37. cd ..
  38. ./bootstrap
  39. }
  40. build() {
  41. cd "$pkgname-$pkgver"
  42. ./configure \
  43. LIBS="-lboost_system -lboost_thread" \
  44. COMPILED_BY='Parabola GNU/Linux-libre' \
  45. --sysconfdir=/etc \
  46. --prefix=/usr
  47. make CXXFLAGS+="-std=c++11 -lboost_system -lboost_thread -w"
  48. }
  49. package() {
  50. cd "$pkgname-$pkgver"
  51. install -d "$pkgdir/usr/share/$pkgname-$_v"
  52. cp -r icons include ini scenes scripts "$pkgdir/usr/share/$pkgname-$_v"
  53. chmod -R u+rwX,g+rX,o+rX "$pkgdir/usr/share/$pkgname-$_v" # fix permissions
  54. install -Dm755 unix/povray "$pkgdir/usr/bin/povray"
  55. install -Dm644 povray.conf "$pkgdir/etc/povray/$_v/povray.conf"
  56. install -Dm644 povray.ini "$pkgdir/etc/povray/$_v/povray.ini"
  57. install -Dm644 povray.1 "$pkgdir/usr/share/man/man1/povray.1"
  58. }
  59. # vim:set ts=2 sw=2 et: