4 pkgdesc="A multiplatform application for playing card games such as Magic: The Gathering over a network."
6 url="http://www.cockatrice.de/index.php"
9 source=('cockatrice.sh' 'arch_build.patch')
10 md5sums=('c3158c4b53526148faa0a036dc521860'
11 '0d2a8e4e983a12107490946e7585df94')
13 install='cockatrice.install'
15 _gitroot="git://cockatrice.git.sourceforge.net/gitroot/cockatrice/cockatrice"
21 msg "Connecting to the GIT server...."
22 if [ -d "$_gitname" ]; then
23 cd $_gitname && git pull origin
24 msg2 "Local files updated"
29 msg2 "GIT checkout done or server timeout"
31 rm -rf $_gitname-build
32 cp -r $_gitname $_gitname-build
33 cd $_gitname-build/cockatrice
35 patch -Np2 -i "$srcdir/arch_build.patch"
37 lrelease cockatrice.pro
49 lrelease servatrice.pro
55 install -dm775 -g games $pkgdir/opt/cockatrice/{bin,oracle,pic}
57 install -Dm755 $srcdir/cockatrice.sh $pkgdir/usr/bin/cockatrice
58 install -Dm644 cockatrice/cockatrice.desktop $pkgdir/usr/share/applications/cockatrice.desktop
59 install -Dm755 -g games cockatrice/cockatrice $pkgdir/opt/cockatrice/bin
60 install -Dm755 -g games servatrice/servatrice $pkgdir/opt/cockatrice/bin
61 install -Dm755 -g games oracle/oracle $pkgdir/opt/cockatrice/bin
62 install -dm775 -g games zonebg/ $pkgdir/opt/cockatrice/zonebg
63 install -m644 -g games zonebg/* $pkgdir/opt/cockatrice/zonebg/
65 install -Dm664 -g games oracle/sets.xml $pkgdir/opt/cockatrice/oracle
66 install -Dm644 -g games servatrice/servatrice.ini.example $pkgdir/opt/cockatrice/bin