summaryrefslogtreecommitdiff
path: root/pcr-testing/lbreakouthd/PKGBUILD
blob: e7a83b7dc0d64ed2d0a532120470882c5a7c8603 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Freemor <freemor@freemor.ca>
# Contributor (Arch): Giovanni Scafora <giovanni@archlinux.org>  
# Contributor (Arch): Tom Newsom <Jeepster@gmx.co.uk>

pkgname=lbreakouthd
pkgver=1.0.4
pkgrel=1
pkgdesc="A breakout game with nice effects, graphics, and sounds"
arch=('x86_64' 'i686' 'armv7h')
url="http://lgames.sourceforge.net"
license=('GPL')
depends=('sdl2_image' 'sdl2_mixer' 'sdl2_ttf' 'sdl2')
backup=('var/games/lbreakouthd/lbreakouthd.hscr')
source=("http://downloads.sourceforge.net/lgames/${pkgname}-${pkgver/_/-}.tar.gz"
        'lbreakouthd.desktop'
	'lbreakouthd.png')
md5sums=('579d0c667812f4412013a5665a36d9e9'
         '95725d685d052c580a261797aad7b2cc'
         '94e2fa393eb2a7d4494641dec580573b')

build() {
  cd ${srcdir}/${pkgname}-${pkgver/_/-}

  ./configure --prefix=/usr \
              --localstatedir=/var/games/lbreakouthd 
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver/_/-}

  make DESTDIR=${pkgdir}/ doc_dir=/usr/share/doc install
  
  chmod -R 755 ${pkgdir}/usr
  chown root:games ${pkgdir}/var/games
  chmod 775 ${pkgdir}/var/games
  chown root:games ${pkgdir}/var/games/lbreakouthd
  chmod 755 ${pkgdir}/var/games/lbreakouthd
  chown root:games ${pkgdir}/var/games/lbreakouthd/lbreakouthd.hscr
  chmod 775 ${pkgdir}/var/games/lbreakouthd/lbreakouthd.hscr

  install -Dm644 ${srcdir}/lbreakouthd.png ${pkgdir}/usr/share/pixmaps/lbreakouthd.png
  install -Dm644 ${srcdir}/lbreakouthd.desktop ${pkgdir}/usr/share/applications/lbreakouthd.desktop
}