deepin.dde-polkit-agent: 0.2.1 -> 0.2.4
This commit is contained in:
parent
45f6c5dfe8
commit
fe14523321
|
@ -4,19 +4,20 @@
|
|||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "dde-polkit-agent";
|
||||
version = "0.2.1";
|
||||
version = "0.2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linuxdeepin";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1n3hys5hhhd99ycpx4im6ihy53vl9c28z7ls7smn117h3ca4c8wc";
|
||||
sha256 = "1x7mv63g8412w1bq7fijsdzi8832qjb6gnr1nykcv7imzlycq9m6";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgconfig
|
||||
qmake
|
||||
qttools
|
||||
deepin.setupHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
@ -27,16 +28,15 @@ stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
searchHardCodedPaths
|
||||
patchShebangs translate_generation.sh
|
||||
|
||||
sed -i dde-polkit-agent.pro polkit-dde-authentication-agent-1.desktop \
|
||||
-e "s,/usr,$out,"
|
||||
fixPath $out /usr dde-polkit-agent.pro polkit-dde-authentication-agent-1.desktop
|
||||
fixPath /run/current-system/sw /usr/lib/polkit-1-dde/plugins pluginmanager.cpp
|
||||
'';
|
||||
|
||||
sed -i pluginmanager.cpp \
|
||||
-e "s,/usr/lib/polkit-1-dde/plugins,/run/current-system/sw/lib/polkit-1-dde/plugins,"
|
||||
|
||||
# Deprecate dcombobox.h header
|
||||
sed -i 's|dcombobox.h|QComboBox|' AuthDialog.h
|
||||
postFixup = ''
|
||||
searchHardCodedPaths $out
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
|
Loading…
Reference in New Issue