summaryrefslogtreecommitdiff
path: root/community/ltris/PKGBUILD
blob: 4eb9204dbe75ecb22ccf38b1ff8bb74c58ac4b38 (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
# $Id: PKGBUILD 53908 2011-08-09 20:01:00Z ttopper $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: SmackleFunky <smacklefunky@optusnet.com.au>

pkgname=ltris
pkgver=1.0.16
pkgrel=1
pkgdesc="A tetris clone where you have a bowl with blocks falling down."
arch=('i686' 'x86_64')
url="http://lgames.sourceforge.net/index.php?project=LTris"
license=('GPL')
depends=('sdl_mixer')
install=ltris.install
source=(http://downloads.sourceforge.net/lgames/${pkgname}-${pkgver}.tar.gz)
md5sums=('07b5a41f8de62ea083575384f05545c6')
sha1sums=('08785fc962ed83678b955f61a9a87a0215938123')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --localstatedir=/var/games
  make
  make DESTDIR="${pkgdir}" install
  install -d "${pkgdir}/usr/share/pixmaps"
  install -m644 icons/ltris{16,32,48}.xpm "${pkgdir}/usr/share/pixmaps"

  chown root:games "${pkgdir}/usr/bin/ltris"
  chmod 2755 "${pkgdir}/usr/bin/ltris"
  chown root:games "${pkgdir}/var/games"
  chmod 775 "${pkgdir}/var/games"
  rm "${pkgdir}/var/games/ltris.hscr"
}