summaryrefslogtreecommitdiff
path: root/extra/gweled/PKGBUILD
blob: 7ad07bf6e7404a995a922845ccf5724110bd40a0 (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
# $Id: PKGBUILD 170548 2012-11-08 15:28:32Z heftig $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=gweled
pkgver=0.9.1
pkgrel=2.1
pkgdesc="A puzzle game similar to Bejeweled (aka Diamond Mine)"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="https://launchpad.net/gweled/"
depends=('gtk2' 'librsvg' 'libmikmod' 'hicolor-icon-theme')
makedepends=('intltool')
install=gweled.install
source=(http://launchpad.net/${pkgname}/trunk/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz)
sha1sums=('ff4a59935c9e1eb4a202e723baabaab39f526714')

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"
}