Merge pull request #65797 from xaverdh/xteddy-2.2-5
xteddy: 2.2 -> 2.2-5 (use debian sources and patches)
This commit is contained in:
commit
c550690c7b
@ -1,19 +1,22 @@
|
|||||||
{ stdenv, fetchzip, pkg-config, xorg, imlib2, makeWrapper }:
|
{ stdenv, fetchFromGitLab, pkg-config, xorg, imlib2, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "xteddy-${version}";
|
name = "xteddy-${version}";
|
||||||
version = "2.2";
|
version = "2.2-5";
|
||||||
src = fetchzip {
|
src = fetchFromGitLab {
|
||||||
url = "https://deb.debian.org/debian/pool/main/x/xteddy/xteddy_${version}.orig.tar.gz";
|
domain = "salsa.debian.org";
|
||||||
sha256 = "0sap4fqvs0888ymf5ga10p3n7n5kr35j38kfsfd7nj0xm4hmcma3";
|
owner = "games-team";
|
||||||
|
repo = "xteddy";
|
||||||
|
rev = "debian%2F${version}"; # %2F = urlquote("/");
|
||||||
|
sha256 = "0rm7w78d6qajq4fvi4agyqm0c70f3c1i0cy2jdb6kqql2k8w78qy";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config makeWrapper ];
|
nativeBuildInputs = [ pkg-config makeWrapper ];
|
||||||
buildInputs = [ imlib2 xorg.libX11 xorg.libXext ];
|
buildInputs = [ imlib2 xorg.libX11 xorg.libXext ];
|
||||||
|
|
||||||
makeFlags = [ "LIBS=-lXext" ];
|
patches = [ "${src}/debian/patches/10_libXext.patch" "${src}/debian/patches/wrong-man-page-section.patch" ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i 's/man 1 xteddy/man 6 xteddy/' xteddy.c
|
|
||||||
sed -i "s:/usr/games/xteddy:$out/bin/xteddy:" xtoys
|
sed -i "s:/usr/games/xteddy:$out/bin/xteddy:" xtoys
|
||||||
sed -i "s:/usr/share/xteddy:$out/share/xteddy:" xtoys
|
sed -i "s:/usr/share/xteddy:$out/share/xteddy:" xtoys
|
||||||
'';
|
'';
|
||||||
@ -32,7 +35,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Cuddly teddy bear for your X desktop";
|
description = "Cuddly teddy bear for your X desktop";
|
||||||
homepage = https://weber.itn.liu.se/~stegu/xteddy/;
|
homepage = "https://weber.itn.liu.se/~stegu/xteddy/";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = [ maintainers.xaverdh ];
|
maintainers = [ maintainers.xaverdh ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user