Advertisement
chapatt

PKGBUILD - awesomebump (checksums updated - 17/04/20)

Apr 20th, 2017
806
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. # Contributor: Jakob Gahde <j5lx@fmail.co.uk>
  2. # Maintainer: Dan Panzarella <alsoelp@gmail.com>
  3.  
  4. pkgname=awesomebump
  5. pkgver=5.0
  6. pkgrel=1
  7. pkgdesc="A free program designed to generate normal, height, specular or ambient occlusion textures from a single image"
  8. arch=('i686' 'x86_64')
  9. url="http://awesomebump.besaba.com/"
  10. license=('LGPL3')
  11. depends=('qt5-base' 'qt5-location' 'qt5-script')
  12. makedepends=('imagemagick')
  13. source=("${pkgname}.tar.gz::https://github.com/kmkolasinski/AwesomeBump/releases/download/Linuxv${pkgver}/AwesomeBumpV5.Bin64Linux.tar.gz"
  14. "ab.sh"
  15. "awesomebump.desktop")
  16. md5sums=('fb9365ee1c32a2f36ea78c296248cf2d'
  17. '462c8edb251cb603d78242b14189e354'
  18. 'a798a1946042f5c06505043100a32e28')
  19. noextract=("${pkgname}.tar.gz") #because it doesn't expand into a subdir
  20.  
  21.  
  22. # Extract tar into a subdir to not pollute source directory which contains
  23. # symlinks to our provided files, causing annoyances on copy
  24. prepare() {
  25. cd "${srcdir}"
  26. mkdir "${pkgname}-src"
  27. tar -xzf "${pkgname}.tar.gz" -C "${pkgname}-src"
  28. }
  29.  
  30. package() {
  31. cd "${srcdir}"
  32. install -dm755 "${pkgdir}/opt"
  33.  
  34. cp --preserve=mode -r "${pkgname}-src" "${pkgdir}/opt/awesomebump"
  35.  
  36. convert "${pkgname}-src/logo.ico" awesomebump.png
  37. install -Dm644 "awesomebump.png" "${pkgdir}/usr/share/pixmaps/awesomebump.png"
  38. install -Dm644 "awesomebump.desktop" "${pkgdir}/usr/share/applications/awesomebump.desktop"
  39. install -Dm755 "ab.sh" "${pkgdir}/usr/bin/AwesomeBump"
  40.  
  41. }
  42.  
  43. # Compiling this project from source has been a nightmare
  44. # that I have been unable to complete. Running the binary is possible
  45. # but it is VERY finicky with paths. Just symlinking to /usr/bin
  46. # (either the binary or the RunAB script) both complain because the
  47. # texture and config paths are in /opt and it is using relative
  48. # references internally. I caved and just made my own run script to move
  49. # a subshell over there and run it.
  50.  
  51. # Project author is discontinuing work on AB, so filing upstream issues
  52. # to fix these path problems is a no-go.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement