xskat: new package

Play the german card game Skat against the AI or over IRC.
This commit is contained in:
Tobias Blaschke 2014-08-23 17:09:11 +02:00 committed by Domen Kožar
parent 10e3cf6f5a
commit c93e48a2bb
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{stdenv, fetchurl, libX11, imake, gccmakedep}:
let
s = # Generated upstream information
rec {
baseName="xskat";
version="4.0";
name="${baseName}-${version}";
url="http://www.xskat.de/xskat-4.0.tar.gz";
hash="8ba52797ccbd131dce69b96288f525b0d55dee5de4008733f7a5a51deb831c10";
sha256="8ba52797ccbd131dce69b96288f525b0d55dee5de4008733f7a5a51deb831c10";
};
buildInputs = [ libX11 imake gccmakedep ];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
preInstall = ''
sed -i Makefile \
-e "s|.* BINDIR .*| BINDIR = $out/bin|" \
-e "s|.* MANPATH .*| MANPATH = $out/man|"
'';
installTargets = "install install.man";
meta = {
inherit (s) version;
description = ''Famous german card game'';
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.free;
longDescription = ''Play the german card game Skat against the AI or over IRC.'';
homepage = http://www.xskat.de/;
};
}

View file

@ -10558,6 +10558,8 @@ let
xonotic = callPackage ../games/xonotic { };
xskat = callPackage ../games/xskat { };
xsokoban = builderDefsPackage (import ../games/xsokoban) {
inherit (xlibs) libX11 xproto libXpm libXt;
};