1 # Contributor: Ismael Barros (RazZziel) <razielmine@gmail.com>
3 pkgname=rotc-ethernet-dev
4 _pkgname_or=rotc-ethernet
7 pkgdesc="Revenge Of The Cats: Ethernet - A free, independent multiplayer FPS computer game."
9 url="http://ethernet.wasted.ch/"
11 [ "$CARCH" = "i686" ] && depends=('libgl' 'sdl' 'libtheora' 'libxft')
12 [ "$CARCH" = "x86_64" ] && depends=('lib32-libgl' 'lib32-sdl' 'lib32-libtheora' 'lib32-libxft')
13 install=$_pkgname_or.install
15 conflicts=$_pkgname_or
16 source=($_pkgname_or.desktop $_pkgname_or.png $_pkgname_or)
17 md5sums=('72a3e5440719de46b583a4caa055619e' '1ee90556779891fe9911729fbadc119c'\
18 'df7b4213992b575a5e8ea87af571176c')
21 wget --no-cache -c http://dev.ethernet.wasted.ch/HEAD.zip -O $SRCDEST/HEAD.zip || return 1
22 ln -fs $SRCDEST/HEAD.zip $srcdir/HEAD.zip
24 echo "Extracting game..."
25 unzip -oq $srcdir/HEAD.zip -d $srcdir/$pkgname-$pkgver || return 1
26 find $srcdir/$pkgname-$pkgver -iregex '.*\.\(exe\|dll\)' -exec rm {} + || return 1
28 install -d $pkgdir/usr/share/$_pkgname_or $pkgdir/usr/bin
30 cp -a $srcdir/$pkgname-$pkgver/* $pkgdir/usr/share/$_pkgname_or/
31 install -m755 $srcdir/$_pkgname_or $pkgdir/usr/bin/
33 install -d $pkgdir/usr/share/applications/
34 install -m644 $startdir/src/$_pkgname_or.desktop $pkgdir/usr/share/applications/
36 install -d $pkgdir/usr/share/pixmaps/
37 install -m644 $srcdir/$_pkgname_or.png $pkgdir/usr/share/pixmaps/