Advertisement
Guest User

Untitled

a guest
Aug 20th, 2021
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. # Maintainer: Kyle McLamb <alloyed@tfwno.gf>
  2. # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
  3. # Contributor: Linus Sjögren <thelinx@unreliablepollution.net>
  4. # Contributor: Eric Forgeot < http://anamnese.online.fr >, dreeze
  5. # Contributor: bageljr
  6. pkgname=love10
  7. pkgver=0.10.2
  8. pkgrel=1
  9. pkgdesc="An open-source 2D game engine which uses the versatile Lua scripting language to create dynamic gaming experiences"
  10. arch=(i686 x86_64)
  11. url="http://love2d.org/"
  12. license=('zlib')
  13. depends=('luajit' 'physfs' 'freetype2' 'mpg123' 'openal' 'libvorbis' 'libmodplug' 'sdl2')
  14. source=("https://github.com/love2d/love/releases/download/0.10.2/love-0.10.2-linux-src.tar.gz")
  15. conflicts=('love')
  16. makedepends=('mercurial')
  17. md5sums=('SKIP')
  18.  
  19. build() {
  20. cd "$srcdir"/love-$pkgver
  21.  
  22. # Update version information in configure script
  23. msg "Updating version information"
  24. head -c 15 configure.ac > configure.ac.tmp
  25. echo " [0.10.2])" >> configure.ac.tmp
  26. tail -n +2 configure.ac >> configure.ac.tmp
  27. mv configure.ac.tmp platform/unix/configure.ac
  28.  
  29. # Skip installing desktop files, icons, etc
  30. head -n 4 Makefile.am > Makefile.am.tmp
  31. mv Makefile.am.tmp platform/unix/Makefile.am
  32.  
  33. # Generate a configure script for love-hg (note the suffix), then configure
  34. msg "Generating makefiles"
  35. #sh platform/unix/automagic 10
  36. ./configure --enable-silent-rules --prefix=/usr LDFLAGS=""
  37.  
  38. # Finally build
  39. msg "Building"
  40. make
  41. }
  42.  
  43. package() {
  44. cd "$srcdir"/love-$pkgver
  45.  
  46. make DESTDIR="$pkgdir" install
  47.  
  48. install -Dm0644 "license.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  49. }
  50.  
  51. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement