updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / braid / PKGBUILD
blob650cd5767005b64a8db370c5e0042c4a4a15cf2b
1 # Maintainer: trya <tryagainprod@gmail.com>
3 pkgname=braid
4 _gamepkg="braid-linux-build2.run.bin"
5 pkgver=1.0.2
6 pkgrel=1
7 pkgdesc="A puzzle-platformer where the player manipulates the flow of time in strange and unusual ways \
8 (requires copy of the full game)"
9 url="http://braid-game.com"
10 license=('custom: "commercial"')
11 arch=('i686' 'x86_64')
12 depends=('sdl' 'nvidia-cg-toolkit')
13 optdepends=('libtxc_dxtn: open S3TC implementation for free DRI drivers')
14 makedepends=('unzip')
15 source=("$_gamepkg"::"file://$_gamepkg"
16         'braid.desktop' 'braid.sh')
17 md5sums=('f8933b7f7c77a234763cf73e2f9312a7'
18          '5c2644ab74d7714bed6d16a564df33bb'
19          'c0c774073c1b626450b4fa30a2917ab8')
21 build() {
22   cd "$srcdir"
23   unzip $_gamepkg || true
26 package() {
27   cd "$srcdir"
28   
29   # data
30   install -d "$pkgdir/opt"
31   cp -a data/gamedata "$pkgdir/opt/Braid"
32   
33   # startup script and executable
34   install -Dm755 braid.sh "$pkgdir/usr/bin/braid"
35   if [ "$CARCH" == "x86_64" ]; then
36     cp data/amd64/braid "$pkgdir/opt/Braid"
37   else
38     cp data/x86/braid "$pkgdir/opt/Braid"
39   fi
40   
41   # desktop icon
42   install -Dm644 braid.desktop "$pkgdir/usr/share/applications/braid.desktop"
43   install -Dm644 data/gamedata/braid.png "$pkgdir/usr/share/pixmaps/braid.png"