PKGBUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Maintainer: Freemor <freemor@freemor.ca>
  2. # Contributor: Giovanni Scafora <giovanni@archlinux.org>
  3. # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
  4. pkgname=lbreakouthd
  5. pkgver=1.0.4
  6. pkgrel=1
  7. pkgdesc="A breakout game with nice effects, graphics, and sounds"
  8. arch=('x86_64' 'i686' 'armv7h')
  9. url="http://lgames.sourceforge.net"
  10. license=('GPL')
  11. depends=('sdl2_image' 'sdl2_mixer' 'sdl2_ttf' 'sdl2')
  12. backup=('var/games/lbreakouthd/lbreakouthd.hscr')
  13. source=("http://downloads.sourceforge.net/lgames/${pkgname}-${pkgver/_/-}.tar.gz"
  14. 'lbreakouthd.desktop'
  15. 'lbreakouthd.png')
  16. md5sums=('579d0c667812f4412013a5665a36d9e9'
  17. '95725d685d052c580a261797aad7b2cc'
  18. '94e2fa393eb2a7d4494641dec580573b')
  19. build() {
  20. cd ${srcdir}/${pkgname}-${pkgver/_/-}
  21. ./configure --prefix=/usr \
  22. --localstatedir=/var/games/lbreakouthd
  23. make
  24. }
  25. package() {
  26. cd ${srcdir}/${pkgname}-${pkgver/_/-}
  27. make DESTDIR=${pkgdir}/ doc_dir=/usr/share/doc install
  28. chmod -R 755 ${pkgdir}/usr
  29. chown root:games ${pkgdir}/var/games
  30. chmod 775 ${pkgdir}/var/games
  31. chown root:games ${pkgdir}/var/games/lbreakouthd
  32. chmod 755 ${pkgdir}/var/games/lbreakouthd
  33. chown root:games ${pkgdir}/var/games/lbreakouthd/lbreakouthd.hscr
  34. chmod 775 ${pkgdir}/var/games/lbreakouthd/lbreakouthd.hscr
  35. install -Dm644 ${srcdir}/lbreakouthd.png ${pkgdir}/usr/share/pixmaps/lbreakouthd.png
  36. install -Dm644 ${srcdir}/lbreakouthd.desktop ${pkgdir}/usr/share/applications/lbreakouthd.desktop
  37. }