Advertisement
widowild1

tarotclub

Jan 29th, 2017
108
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Anthony Rabine anthony.rabine@tarotclub.fr
  2.  
  3. pkgname=tarotclub
  4. pkgver=2_6_2
  5. pkgrel=1
  6. pkgdesc="A local/network French Tarot card game."
  7. url="http://www.tarotclub.fr"
  8. arch=('any')
  9. license=('GPLv3')
  10. depends=('qt5-base' 'qt5-svg' 'libgl')
  11. optdepends=()
  12. makedepends=()
  13. conflicts=('tarotclub')
  14. replaces=()
  15. backup=()
  16. install='tarotclub.install'
  17. source=('tarotclub.desktop' 'tarotclub.sh' "https://github.com/tarotclub/tarotclub/archive/VERSION_${pkgver}.tar.gz")
  18.  
  19. # MD5 signature of source files
  20. md5sums=('289ae912415776f7f77f907ec64ff067'
  21. '4aaef27ca4b547493c879d76f24beea7'
  22. '896204e6d72169a8fcfe837cc4f2e380')
  23.  
  24. build() {
  25. cd "${srcdir}/${pkgname}-VERSION_${pkgver}"
  26. qmake prj/desktop.pro
  27. make
  28.  
  29. }
  30. package() {
  31. cd "${srcdir}/${pkgname}-VERSION_${pkgver}"
  32.  
  33. ## EXECUTABLE AND RELATED FILES ##
  34.  
  35. install -Dm644 ./COPYING "${pkgdir}"/usr/share/tarotclub/COPYING
  36. install -Dm644 ./HISTORY.md "${pkgdir}"/usr/share/tarotclub/HISTORY.md
  37. install -Dm644 ./README.md "${pkgdir}"/usr/share/tarotclub/README.md
  38. install -Dm755 ./build-desktop/release/TarotClub "${pkgdir}"/usr/share/tarotclub
  39. install -Dm644 ./assets/fonts/kanzlei.ttf "${pkgdir}"/usr/share/tarotclub/kanzlei.ttf
  40. install -Dm644 ./assets/fonts/kanzlei.ttf "${pkgdir}"/usr/share/fonts/TTF/kanzlei.ttf
  41. install -Dm644 ./prj/desktop/tarotclub_fr.qm "${pkgdir}"/usr/share/tarotclub/tarotclub_fr.qm
  42.  
  43. ## CARDS ##
  44. cp -r ./assets/cards/default/ "${pkgdir}"/usr/share/tarotclub/
  45. chmod 644 "${pkgdir}"/usr/share/tarotclub/default/*
  46.  
  47. ## AI JAVASCRIPT FILES ##
  48.  
  49. install -d "${pkgdir}"/usr/share/tarotclub/ai/tarotlib/
  50. cp -a ./assets/ai/tarotlib/{system,util,card,deck,player,bot,game}.js "${pkgdir}"/usr/share/tarotclub/ai/tarotlib/
  51. chmod 644 "${pkgdir}"/usr/share/tarotclub/ai/tarotlib/*
  52. install -Dm644 ./assets/ai/noob.js "${pkgdir}"/usr/share/tarotclub/ai/noob.js
  53. install -Dm644 ./assets/ai/noob.json "${pkgdir}"/usr/share/tarotclub/ai/noob.json
  54.  
  55. ## ICONS ##
  56. install -Dm644 ./assets/icons/icon256x256.png "${pkgdir}"/usr/share/pixmaps/tarotclub.png
  57. install -Dm644 ./assets/icons/club.svg "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/tarotclub.svg
  58. for res in 16 32 48 128 256 512; do
  59. install -Dm644 "./assets/icons/icon${res}x${res}.png" \
  60. "${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/tarotclub.png"
  61. done
  62.  
  63. ## DOCUMENTATION ##
  64.  
  65. install -Dm644 ./doc/index.html "${pkgdir}"/usr/share/tarotclub/doc/index.html
  66. install -Dm644 ./doc/rules_en.html "${pkgdir}"/usr/share/tarotclub/doc/rules_en.html
  67. install -Dm644 ./doc/rules_fr.html "${pkgdir}"/usr/share/tarotclub/doc/rules_fr.html
  68. cp -r ./doc/images/ "${pkgdir}"/usr/share/tarotclub/doc
  69. chmod 644 "${pkgdir}"/usr/share/tarotclub/doc*
  70.  
  71. ## MISC FILES LOCATED AT THE PACKAGE ROOT ##
  72.  
  73. cd "$srcdir/"
  74. install -Dm644 tarotclub.desktop "${pkgdir}"/usr/share/applications/tarotclub.desktop
  75. install -Dm755 tarotclub.sh "${pkgdir}"/usr/bin/tarotclub
  76. }
Advertisement
RAW Paste Data Copied
Advertisement