mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
50 lines
1.4 KiB
Bash
50 lines
1.4 KiB
Bash
#
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
pkgname=capicity
|
|
_pkgname=CapiCity
|
|
_pkgname2="Capi City"
|
|
_projectname=capitalism
|
|
pkgver=1.0
|
|
_pkgver=${pkgver}
|
|
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')
|
|
categories=('games')
|
|
source=("http://downloads.sourceforge.net/project/$_projectname/$_pkgname2/$_pkgver/${_pkgname}_${pkgver}.tar.gz")
|
|
md5sums=('366bef3eb982bf35c63b8b9cb583ad61')
|
|
|
|
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
|
|
}
|