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 {
pname = "zombietrackergps";
version = "1.03";
version = "1.10";
src = fetchFromGitLab {
owner = "ldutils-projects";
repo = pname;
rev = "v_${version}";
sha256 = "1rmdy6kijmcxamm4mqmz8638xqisijlnpv8mimgxywpf90h9rrwq";
sha256 = "sha256-qRhCAOVWyDLD3WDptPRQVq+VwyFu83XQNaL5TMsGs4Y=";
};
buildInputs = [
@ -33,7 +33,10 @@ mkDerivation rec {
];
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 = ''
@ -41,10 +44,17 @@ mkDerivation rec {
export INSTALL_ROOT=$out
'';
postConfigure = ''
substituteInPlace Makefile --replace '$(INSTALL_ROOT)' ""
preInstall = ''
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; {
description = "GPS track manager for Qt using KDE Marble maps";
homepage = "https://www.zombietrackergps.net/ztgps/";