Advertisement
Guest User

Untitled

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