PKGBUILD 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Maintainer (Arch): Alexander F. Rødseth <xyproto@archlinux.org>
  2. # Contributor (Arch): kappa <kappacurve@gmail.com>
  3. # Maintainer: Márcio Silva <coadde@hyperbola.info>
  4. pkgname=wings3d
  5. pkgver=2.2.5
  6. pkgrel=1
  7. pkgrel+=.parabola1
  8. pkgdesc='3D modeler using the winged edge data structure'
  9. pkgdesc+=', without nonfree kerkythea render support'
  10. arch=(x86_64)
  11. arch+=(i686 armv7h)
  12. # https is not available
  13. url='http://www.wings3d.com/'
  14. license=(GPL)
  15. depends=(erlang erlang-cl erlang-sdl)
  16. makedepends=(gendesk)
  17. optdepends=('povray: render scenes with POV-Ray')
  18. conflicts=("${pkgname}-libre")
  19. replaces=("${pkgname}-libre")
  20. source=("https://downloads.sourceforge.net/project/wings/wings/$pkgver/wings-$pkgver.tar.bz2"
  21. "$pkgname.sh")
  22. sha256sums=('95ecf84a8f49bc00b983643e7ccd807f64a3b8b88253037a8ccefbe7a3bedff8'
  23. '8e5e8f31d47ea55a0e9d311b7cc0eaac4e6050ac40506d3548b6ebae5d3618be')
  24. _p=${pkgname%3d}-$pkgver
  25. prepare() {
  26. gendesk -f -n \
  27. --name Wings3D \
  28. --pkgname $pkgname \
  29. --pkgdesc "$pkgdesc" \
  30. --genericname '3D Modeler' \
  31. --categories 'Graphics;3DGraphics'
  32. }
  33. build() {
  34. export ERL_LIBS="$srcdir"
  35. make -C "${pkgname%3d}-$pkgver" unix
  36. }
  37. package() {
  38. install -Dm755 $pkgname.sh "$pkgdir/usr/bin/$pkgname"
  39. install -Dm644 -t "$pkgdir/usr/share/applications" $pkgname.desktop
  40. cd "${pkgname%3d}-$pkgver/icons"
  41. install -Dm644 wings_icon_48x48.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
  42. cd ../build
  43. install -d "$pkgdir/usr/lib/$pkgname"
  44. cp -r "wings-$pkgver-linux/lib/wings-$pkgver"/* "$pkgdir/usr/lib/$pkgname/"
  45. msg 'remove nonfree kerkythea render support plugin'
  46. rm -v $pkgdir/usr/lib/$pkgname/plugins/import_export/wpc_kerky.beam
  47. }
  48. # getver: -u=2 github.com/dgud/wings/releases
  49. # vim: ts=2 sw=2 et: