PKGBUILD.template 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Original AUR Maintainer: Vladimir Panteleev <arch-pkg at thecybershadow.net>
  2. # Current Maintainer: Dylan Morrison <dylanjmorrison611 at gmail.com>
  3. pkgname=megazeux
  4. pkgver=UNSET
  5. pkgrel=1
  6. pkgdesc="Game creation system"
  7. arch=('i686' 'x86_64')
  8. url="http://www.digitalmzx.net/"
  9. license=('gpl')
  10. groups=('games')
  11. depends=(libvorbis libpng sdl2)
  12. makedepends=()
  13. _base=mzx${pkgver/.}
  14. _filename=${_base}src.tar.xz
  15. _sha256sum=UNSET
  16. ##old version
  17. #source=("${_filename}::http://vault.digitalmzx.net/download.php?rid=2197&f=${_sha256sum}")
  18. ##new version
  19. source=("${_filename}::http://vault.digitalmzx.net/download.php?latest=src&ver=${pkgver}")
  20. sha256sums=("${_sha256sum}")
  21. DLAGENTS=("http::/usr/bin/curl -A 'Mozilla' -fLC - -o %o %u")
  22. build() {
  23. cd "${srcdir}/${_base}"
  24. ./config.sh \
  25. --platform unix \
  26. --prefix /usr \
  27. --bindir /usr/lib/megazeux \
  28. --gamesdir /usr/bin
  29. echo 'RAWLIBDIR=lib' >> platform.inc
  30. echo 'LIBDIR=/usr/lib' >> platform.inc
  31. make
  32. }
  33. package() {
  34. cd "${srcdir}/${_base}"
  35. make DESTDIR="$pkgdir/" install
  36. }
  37. # Local Variables:
  38. # pkgbuild-update-sums-on-save: nil
  39. # End: