updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lix-git / PKGBUILD
blob27a1b9fa674ed8bb24293fe218442423c7b4ebde
1 # Maintainer: Carl Reinke <mindless2112 gmail com>
3 pkgname=lix-git
4 pkgver=20120102
5 pkgrel=1
6 pkgdesc="an action-puzzle game in the IRS (Interactive Rodent Simulation) genre (like Lemmings)"
7 url="http://asdfasdf.ethz.ch/~simon/"
8 license=('custom')
9 source=('lix.launcher'
10         'lixd.launcher'
11         'lix.png'
12         'lix.desktop')
13 md5sums=('55a17a99eed2ca312176bfb330e3c3f1'
14          '766cfcdb7e9c861c57153bbf86e15c7b'
15          '19cede8ac55382151127c22ad80dc47f'
16          'a0a5d058c60d3ea48d09c010699600b5')
17 arch=('i686' 'x86_64')
18 depends=('allegro4' 'enet')
19 makedepends=('git')
21 _gitroot=git://github.com/SimonN/Lix.git
22 _gitname=Lix
24 build()
26         cd "$srcdir"
27         
28         msg "Connecting to $_gitroot..."
29         if [[ -d "$srcdir/$_gitname" ]]; then
30                 cd "$_gitname" && git pull origin
31         else
32                 git clone "$_gitroot"
33         fi
34         
35         rm -rf "$srcdir/$_gitname-build"
36         git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37         
38         cd "$srcdir/$_gitname-build"
39         
40         msg "Starting make..."
41         make
44 package()
46         cd "$srcdir/$_gitname-build"
47         
48         install -dm755 -ggames  "$pkgdir/opt/lix"
49         install -Dm755 bin/lix  "$pkgdir/opt/lix/lix"
50         install -Dm755 bin/lixd "$pkgdir/opt/lix/lixd"
51         cp -R bitmap/ data/ doc/ levels/ replay/ "$pkgdir/opt/lix/"
52         
53         install -Dm755 "$srcdir/lix.launcher"  "$pkgdir/usr/bin/lix"
54         install -Dm755 "$srcdir/lixd.launcher" "$pkgdir/usr/bin/lixd"
55         install -Dm644 "$srcdir/lix.png"       "$pkgdir/usr/share/pixmaps/lix.png"
56         install -Dm644 "$srcdir/lix.desktop"   "$pkgdir/usr/share/applications/lix.desktop"
57         
58         cd "$pkgdir"
59         
60         chown -R :games opt/lix/*
61         chmod -R 644 opt/lix/doc
62         chmod -R 664 opt/lix/{bitmap,data,levels,replay}
63         find opt/lix/ -type d -exec chmod a+x \{\} \;