summaryrefslogtreecommitdiff
path: root/extra/gweled/PKGBUILD
blob: da2e9e518ef82af07514a099057c70672629d7ca (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
# $Id: PKGBUILD 108818 2011-02-03 20:50:44Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=gweled
pkgver=0.9
pkgrel=1
pkgdesc="A puzzle game similar to Bejeweled (aka Diamond Mine)"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="https://launchpad.net/gweled/"
depends=('librsvg' 'libmikmod')
makedepends=('intltool')
install=gweled.install
source=(http://launchpad.net/${pkgname}/trunk/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz)
md5sums=('a3aeec75190710758bbd3c487b637112')
sha1sums=('70358e0557eaee370a9183e1ea34e95a09d57619')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
    --with-scores-user=root --with-scores-group=games
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install

# We generate these files on post-install to prevent score resets on upgrade
  rm -rf "${pkgdir}/var"
}