zombietrackergps: 1.03 → 1.10

This commit is contained in:
Nikolay Korotkiy 2021-05-28 15:48:47 +03:00 committed by Nikolay Korotkiy
parent 6cc6cb67fa
commit f16e78d0a0
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5

View file

@ -11,13 +11,13 @@
mkDerivation rec { mkDerivation rec {
pname = "zombietrackergps"; pname = "zombietrackergps";
version = "1.03"; version = "1.10";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "ldutils-projects"; owner = "ldutils-projects";
repo = pname; repo = pname;
rev = "v_${version}"; rev = "v_${version}";
sha256 = "1rmdy6kijmcxamm4mqmz8638xqisijlnpv8mimgxywpf90h9rrwq"; sha256 = "sha256-qRhCAOVWyDLD3WDptPRQVq+VwyFu83XQNaL5TMsGs4Y=";
}; };
buildInputs = [ buildInputs = [
@ -33,7 +33,10 @@ mkDerivation rec {
]; ];
prePatch = '' prePatch = ''
sed -ie "s,INCLUDEPATH += /usr/include/libldutils,INCLUDEPATH += ${ldutils}," ZombieTrackerGPS.pro substituteInPlace ztgps.pro --replace "../libldutils" "libldutils"
substituteInPlace tests.pro --replace "../libldutils" "libldutils"
ln -s ${ldutils} libldutils
''; '';
preConfigure = '' preConfigure = ''
@ -41,10 +44,17 @@ mkDerivation rec {
export INSTALL_ROOT=$out export INSTALL_ROOT=$out
''; '';
postConfigure = '' preInstall = ''
substituteInPlace Makefile --replace '$(INSTALL_ROOT)' "" substituteInPlace Makefile.ztgps --replace '$(INSTALL_ROOT)' ""
substituteInPlace Makefile.art --replace '$(INSTALL_ROOT)' ""
''; '';
postInstall = ''
install -Dm644 build/rcc/*.rcc -t $out/share/zombietrackergps
'';
qmakeFlags = [ "ZombieTrackerGPS.pro" ];
meta = with lib; { meta = with lib; {
description = "GPS track manager for Qt using KDE Marble maps"; description = "GPS track manager for Qt using KDE Marble maps";
homepage = "https://www.zombietrackergps.net/ztgps/"; homepage = "https://www.zombietrackergps.net/ztgps/";