Advertisement
Guest User

Untitled

a guest
Jul 5th, 2022
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. # Contributor: archtux <antonio dot arias99999 at gmail dot com>
  2. # Contributor: andy123 < ajs [at] online [dot] de >
  3. # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
  4. # Contributor: Linus Sjögren <thelinx@unreliablepollution.net>
  5. # Contributor: Eric Forgeot < http://anamnese.online.fr >, dreeze
  6. # Contributor: SanskritFritz (gmail)
  7. # Maintainer: Parker Reed <parker.l.reed@gmail.com>
  8.  
  9. pkgname=love07
  10. pkgver=0.7.2
  11. pkgrel=7
  12. pkgdesc="An open-source 2D game engine which uses the versatile Lua scripting language to create dynamic gaming experiences."
  13. arch=('i686' 'x86_64')
  14. url="http://love2d.org/"
  15. license=('zlib')
  16. depends=('desktop-file-utils' 'devil' 'freetype2' 'hicolor-icon-theme' 'libmodplug' 'libvorbis' 'lua51' 'mpg123' 'openal' 'physfs' 'sdl' 'shared-mime-info' 'libgl' 'glu' 'libmng')
  17. install=$pkgname.install
  18. source=("https://github.com/love2d/love/releases/download/0.7.2/love-0.7.2-linux-src.tar.gz"
  19. "https://raw.githubusercontent.com/love2d/love/0.7.2/license.txt"
  20. "https://raw.githubusercontent.com/love2d/love/0.7.2/platform/unix/app.svg"
  21. "https://raw.githubusercontent.com/love2d/love/0.7.2/platform/unix/game.svg"
  22. "love.desktop"
  23. "love07.patch"
  24. "https://raw.githubusercontent.com/love2d/love/0.7.2/platform/unix/love.xml")
  25. sha256sums=('a57adcb0cbdc390a9bd8e2fe477bc175799b9ffd3486e01f859a36bf27f7f268'
  26. 'c4cb43c06ab89c84349704a62849e9e66bf0c245e8a4df4f9068204124de1845'
  27. 'b8116c4cc8d7b80adba579b582b9570d8178f93d3d9e35977d621e03500b8a7f'
  28. '7452bc537980d6fdd6293d8bdaedbfa68264fa9bb160503d9b1ad16c8278b6af'
  29. 'd045b6c1aeb8fdb9ec33c75d204e0698f34e863063c274633b79e8b1b7f7a302'
  30. '6b63906f9dabc9c000ddce32bec7020e89f51e88425d1eb940a533dd9b9ab09b'
  31. '5b72ae3818ada71ec7fd69c2a27126dc5c759257e1ff203639655c389a24ccb1')
  32.  
  33. prepare() {
  34. cd "$srcdir/love-HEAD"
  35.  
  36. patch -p1 < ../love07.patch
  37.  
  38. # Fix for freetype2 and variants(ubuntu, infinality etc...)
  39. FILE="/usr/include/freetype2/freetype/freetype.h"
  40. if [ -f $FILE ];
  41. then
  42. sed -i 's|<freetype|<freetype2/freetype|' src/modules/font/freetype/{Font,TrueTypeRasterizer}.h
  43. else
  44. sed -i 's|<freetype|&2|' src/modules/font/freetype/{Font,TrueTypeRasterizer}.h
  45. fi
  46.  
  47. # Fix mesa 10 GLee.h(thanks to ajs124)
  48. sed -i '70itypedef XID GLXContextID;' "src/modules/graphics/opengl/GLee.h"
  49.  
  50. ./configure --prefix=/usr --program-suffix=07
  51. }
  52.  
  53. build() {
  54. cd "$srcdir/love-HEAD"
  55. make
  56. }
  57.  
  58. package() {
  59. cd "$srcdir/love-HEAD"
  60.  
  61. make DESTDIR=$pkgdir install
  62.  
  63. cd ..
  64. install -Dm644 license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  65. install -Dm644 love.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
  66. }
  67.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement