Package Details: kardsgt 0.7.1-6

Package Base: kardsgt
Description: KardsGT is a general card game suite. Available games are : Crazy Eights, Cribbage, Euchre, Hearts, Old Maid, Spades, War.
Upstream URL: http://www.kde-apps.org/content/show.php/KardsGT?content=40618
Category: games
Licenses: GPL3
Submitter: archtux
Maintainer: archtux
Last Packager: None
Votes: 7
First Submitted: 2009-08-23 22:26
Last Updated: 2014-03-15 21:39

Dependencies (1)

Required by (0)

Sources

Latest Comments

Anonymous comment

2013-07-07 18:43

Compiling this failed on my system:

kardsgtinterface.cpp:30:28: fatal error: QAssistantClient: No such file or directory
#include <QAssistantClient>
^
compilation terminated.

Comment by weedfreak

2013-05-29 09:20

Errors during build -

==> WARNING: Using a PKGBUILD without a package() function is deprecated.

-> Downloading kardsgt-0.7.1-4mdv2011.0.x86_64.rpm...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 2196k 0 0 0 0 0 0 --:--:-- 0:01:11 --:--:-- 0
Warning: Transient problem: FTP error Will retry in 3 seconds. 3 retries left.

fails after 3 retries.

Manually copying the rpm into the tmp build folder allows build to continue. But game crashes often when playing.

Comment by archtux

2011-09-24 17:39

@myra
Thanks for taking time to analyze PKGBUILD.
New PKGBUILD.

Anonymous comment

2011-09-24 08:18

Question, since the package is now kardsgt-0.7.1-4mdv2011.0.etc should the pkgrel in the PKGBUILD be bumped up to 4? Onward and upward. To get this to build properly, I build in /tmp/makepkg, a couple of changes to the PGKBUILD had to be made. bsdtar -xf $pkgname-$pkgver* doesn't work or at least it didn't, so I changed the PKGBUILD to mirror the download portion with and if elif fi block. This still failed then I noticed the dreaded cd $strtdir which had been deprecated and should be cd $srcdir. Next problem was:
# Fix man page
rm $pkgdir/usr/share/man/man6/kardsgt.6.lzma
install -Dm644 kardsgt.6 $pkgdir/usr/share/man/man6

Since kardsgt.6 doesn't exist in $srcdir/usr/share/man/man6 it can't be installed and the cp -R usr/ $pkgdir already moved kardsgt.6.lzma. This seemed much cleaner:

unxz $pkgdir/usr/share/man/man6/kardsgt.6.lzma
chmod 0644 $pkgdir/usr/share/man/man6/kardsgt.6

I also modified the cp command to cp -R $srcdir/usr/ $pkgdir. The updated PKGBUILD is here:

http://pastebin.com/ug9GMiRK

It built, installed, and ran fine on an x86_64 machine.

Comment by macxcool

2011-03-15 13:30

OK. Adding qt-assistant-compat to the 'depends' fixed the problem. It compiles and runs now.

Comment by macxcool

2011-03-15 13:29

OK. Adding qt-assistant-compat to the 'depends' fixed the problem. It compiles and runs now.

Comment by macxcool

2011-03-15 13:27

Changing the 'source', 'md5sums' and the rpmextract line to the following allows the build to run. I still get a shared library error for libQtAssistantClient.so.4 though.

<code># Contributor: archtux <antonio.arias99999@gmail.com>

pkgname=kardsgt
pkgver=0.7.1
pkgrel=3
pkgdesc="KardsGT is a general card game suite. Available games are : Crazy Eights, Cribbage, Euchre, Hearts, Old Maid, Spades, War."
arch=('i686')
url="http://www.kde-apps.org/content/show.php/KardsGT?content=40618"
license=('GPL')
depends=('qt' 'rpmextract')
source=(ftp://mirrors.us.kernel.org/mandriva/Mandrakelinux/official/2010.1/i586/media/contrib/release/$pkgname-$pkgver-3mdv2010.0.i586.rpm)
md5sums=('2869284543d47075b570c5b3ca7c97f3')

build() {
cd $startdir

rpmextract.sh $pkgname-$pkgver-3mdv2010.0.i586.rpm
rm usr/share/man/man6/kardsgt.6.lzma
cp -R usr/ $pkgdir
install -Dm644 kardsgt.6 $pkgdir/usr/share/man/man6
}</code>

Anonymous comment

2010-05-14 21:46

For some reason the only thing that gets installed on my system is the man page. I wanted to install from source but I'm confused, I was going to study a PKGBUILD that uses cmake but the INSTALL file seems a little convoluted. Do I really need to do manual stuff in krita just to install this? I'd rather not.