Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. # Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
  2. # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
  3. # Contributor: Micael Soder <zoulnix@gmail.com>
  4.  
  5. pkgname=bombermaaan
  6. pkgver=1.4.0.627
  7. pkgrel=5
  8. _pkgdate=20081018
  9. pkgdesc="A classic Bomberman-like game with multiplayer support"
  10. arch=('i686' 'x86_64')
  11. url="http://$pkgname.sourceforge.net"
  12. license=('GPL3')
  13. depends=('sdl_mixer')
  14. install=$pkgname.install
  15. source=("http://downloads.sourceforge.net/$pkgname/Bombermaaan_${pkgver}_${_pkgdate}_src.tar.gz"
  16. "http://downloads.sourceforge.net/$pkgname/Bombermaaan_${pkgver}_${_pkgdate}_res.tar.gz"
  17. "http://www.moddb.com/downloads/mirror/30444/108/47e3ef8f40d8c0885f9417b7c43314c3"
  18. "$pkgname.png"
  19. "$pkgname.desktop")
  20. sha256sums=('fb0b6d59569d436ac10b452857b8800b831513ab888b29a66c2dc0ada12d045d'
  21. '48c702d42a87b44606cbed2da88b49b250f66c6a65067d1dc43b25980ef1c74a'
  22. '7a73655f609096271434d20e8a9c33b9af71c547a4a1fc312fbd85866f6c8519'
  23. '803576f10eb6b45e807cd12a4ccd6b17652ddda53bf8f0e2fa1fb5623d9287bc'
  24. '06f8be98170c3c95628003a1419bb25527617330f225bab82baffa564ca1f92b')
  25. prepare() {
  26. cd Bombermaaan_${pkgver}_${_pkgdate}_src
  27.  
  28. # copy data files for generated library
  29. cp -r ../Bombermaaan_${pkgver}_${_pkgdate}_res/RES32 .
  30.  
  31. cd Bombermaaan
  32. # type fix
  33. sed "s|\tchar \*backslash|\tconst char \*backslash|" -i winreplace.cpp
  34. # adapt directory to arch standards
  35. sed "s|share/games/bombermaaan|share/bombermaaan|" -i CGame.cpp
  36. # add our cflags/ldflags
  37. sed "s|SDL_CFLAGS :=|& $CXXFLAGS |;s|SDL_LDFLAGS :=|& $LDFLAGS |" -i Makefile
  38. }
  39.  
  40. build() {
  41. make -C Bombermaaan_${pkgver}_${_pkgdate}_src
  42. }
  43.  
  44. package() {
  45. cd Bombermaaan_${pkgver}_${_pkgdate}_src
  46.  
  47. # binary
  48. install -Dm755 Bombermaaan/Bombermaaan "$pkgdir"/usr/bin/bombermaaan
  49. # library
  50. install -Dm644 RESGEN/libbombermaaan.so.1.0.0 "$pkgdir"/usr/lib/libbombermaaan.so.1.0.0
  51. ln -s libbombermaaan.so.1.0.0 "$pkgdir"/usr/lib/libbombermaaan.so.1
  52. ln -s libbombermaaan.so.1 "$pkgdir"/usr/lib/libbombermaaan.so
  53. # doc
  54. install -Dm644 Readme.html "$pkgdir"/usr/share/doc/$pkgname/README.html
  55. cd ..
  56. # level pack by feillyne: http://www.moddb.com/games/bombermaaan/addons/level-pack-151-levels
  57. install -d "$pkgdir"/usr/share/$pkgname/Levels
  58. install -m644 Levels/* "$pkgdir"/usr/share/$pkgname/Levels
  59. # .desktop entry
  60. install -Dm644 $pkgname.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
  61. install -Dm644 $pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement