1 # Maintainer: Carl Reinke <mindless2112 gmail com>
6 pkgdesc="an action-puzzle game in the IRS (Interactive Rodent Simulation) genre (like Lemmings)"
7 url="http://asdfasdf.ethz.ch/~simon/"
13 md5sums=('55a17a99eed2ca312176bfb330e3c3f1'
14 '766cfcdb7e9c861c57153bbf86e15c7b'
15 '19cede8ac55382151127c22ad80dc47f'
16 'a0a5d058c60d3ea48d09c010699600b5')
17 arch=('i686' 'x86_64')
18 depends=('allegro4' 'enet')
21 _gitroot=git://github.com/SimonN/Lix.git
28 msg "Connecting to $_gitroot..."
29 if [[ -d "$srcdir/$_gitname" ]]; then
30 cd "$_gitname" && git pull origin
35 rm -rf "$srcdir/$_gitname-build"
36 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
40 msg "Starting make..."
46 cd "$srcdir/$_gitname-build"
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/"
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"
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 \{\} \;