updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / quantz-demo / PKGBUILD
blobd7942f0f9ad5dabe62cfd7c065636f91c8a95ee7
1 # Contributor: Andrwe Lord Weber <lord-weber-andrwe at renona-studios dot org>
3 pkgname=quantz-demo
4 _tmpname="QuantZ"
5 pkgver=1.1.4
6 pkgrel=1
7 pkgdesc="A native linux non-ordinary puzzle game (Demo)"
8 arch=('i686' 'x86_64')
9 url="http://www.gamerizon.com/"
10 license=('unknown')
11 groups=""
12 depends=( 'libxdamage' 'mesa' 'xorg-utils' )
13 makedepends=()
14 optdepends=( 'nvidia-utils: if you use nvida graphic cards' )
15 provides=('quantz')
16 conflicts=('quantz')
17 replaces=()
18 backup=()
19 options=()
20 install=""
21 source=("http://c0550982.cdn.cloudfiles.rackspacecloud.com/${_tmpname}-demo_${pkgver}_i386.tar.gz" "quantz.desktop")
22 [ "$CARCH" == "x86_64" ] && source=("http://c0550982.cdn.cloudfiles.rackspacecloud.com/${_tmpname}-demo_${pkgver}_amd64.tar.gz" "quantz.desktop")
23 noextract=()
24 md5sums=('b90ac5cb04c4811d29cc97972ceac317'
25          'c19172aa6efa8fbacbdf4e201ea609f2')
26 [ "$CARCH" == "x86_64" ] && md5sums=('d3a3daa0887ac4859fdfa2b7ca7234bd'
27          'c19172aa6efa8fbacbdf4e201ea609f2')
29 build() {
30         cd "${srcdir}"/${_tmpname}
31         
32         mkdir -p "${pkgdir}"/{lib,usr/share/{icons/${_tmpname},applications},usr/bin,usr/share/doc/${pkgname},}
33         cp -r lib/ "${pkgdir}"/
34         cp icons/* "${pkgdir}"/usr/share/icons/${_tmpname}/
35         cp ${_tmpname} "${pkgdir}"/usr/bin/
36         cp {${_tmpname}.manual,README,COPYING} "${pkgdir}"/usr/share/doc/${pkgname}/
37         cp "${startdir}"/quantz.desktop "${pkgdir}"/usr/share/applications/
38         sed -i "s/!ver!/${pkgver}-${pkgrel}/g" "${pkgdir}"/usr/share/applications/quantz.desktop
39