PKGBUILD 1.29 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>

pkgname=capitalism
_pkgname=Capitalism
pkgver=0.5.1
_pkgver=0.5
pkgrel=1
pkgdesc="Interface to play board games like Monopoly™ online."
arch=('i686' 'x86_64')
url="http://qt-apps.org/content/show.php?content=113173"
screenshot="http://qt-apps.org/CONTENT/content-pre1/113173-1.png"
license=('GPL2')
depends=('qt')
source=(http://downloads.sourceforge.net/project/$pkgname/$_pkgname/$_pkgver/$pkgname-$pkgver.tbz)
md5sums=('f232647ecee3c2bd9ae53822812e2dd2')

build() {
  cd $srcdir/$_pkgname-$pkgver
  qmake -makefile
  make
}

package() {
  cd $srcdir/$_pkgname-$pkgver

  # Binary and data.
  install -d $pkgdir/usr/share/$pkgname
  cp -r $_pkgname games icons images ts $pkgdir/usr/share/$pkgname/

  # Execution script.
  install -d $pkgdir/usr/bin/
  echo "#!/bin/bash"		 > $pkgdir/usr/bin/$pkgname
  echo "cd /usr/share/$pkgname"	>> $pkgdir/usr/bin/$pkgname
  echo "./$_pkgname \$@"	>> $pkgdir/usr/bin/$pkgname
  chmod +x $pkgdir/usr/bin/$pkgname

  # Documentation.
  install -Dm644 changelog $pkgdir/usr/doc/$pkgname/ChangeLog
  install -Dm644 README $pkgdir/usr/doc/$pkgname/information.txt

  # License.
  install -Dm644 copying.txt $pkgdir/usr/doc/$pkgname/license.txt
}