qutebrowser: use upstream make install
This commit is contained in:
parent
ec96702d7d
commit
65cdf3be6d
1 changed files with 16 additions and 23 deletions
|
@ -100,9 +100,7 @@ buildPythonApplication {
|
||||||
dontWrapGApps = true;
|
dontWrapGApps = true;
|
||||||
dontWrapQtApps = true;
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = lib.optionalString isQt6 ''
|
||||||
a2x -f manpage doc/qutebrowser.1.asciidoc
|
|
||||||
'' + lib.optionalString isQt6 ''
|
|
||||||
python scripts/asciidoc2html.py
|
python scripts/asciidoc2html.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -114,25 +112,20 @@ buildPythonApplication {
|
||||||
sed -i "s,/usr/share/pdf.js,${pdfjs},g" qutebrowser/browser/pdfjs.py
|
sed -i "s,/usr/share/pdf.js,${pdfjs},g" qutebrowser/browser/pdfjs.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
make -f misc/Makefile \
|
||||||
|
PYTHON=${python3}/bin/python3 \
|
||||||
|
PREFIX=. \
|
||||||
|
DESTDIR="$out" \
|
||||||
|
DATAROOTDIR=/share \
|
||||||
|
install
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -Dm644 doc/qutebrowser.1 "$out/share/man/man1/qutebrowser.1"
|
|
||||||
install -Dm644 misc/org.qutebrowser.qutebrowser.desktop \
|
|
||||||
"$out/share/applications/org.qutebrowser.qutebrowser.desktop"
|
|
||||||
|
|
||||||
# Install icons
|
|
||||||
for i in 16 24 32 48 64 128 256 512; do
|
|
||||||
install -Dm644 "${lib.optionalString isQt6 "qutebrowser/"}icons/qutebrowser-''${i}x''${i}.png" \
|
|
||||||
"$out/share/icons/hicolor/''${i}x''${i}/apps/qutebrowser.png"
|
|
||||||
done
|
|
||||||
install -Dm644 ${lib.optionalString isQt6 "qutebrowser/"}icons/qutebrowser.svg \
|
|
||||||
"$out/share/icons/hicolor/scalable/apps/qutebrowser.svg"
|
|
||||||
|
|
||||||
# Install scripts
|
|
||||||
sed -i "s,/usr/bin/,$out/bin/,g" scripts/open_url_in_instance.sh
|
|
||||||
${lib.optionalString isQt6 "rm -rf scripts/{testbrowser,dev}"}
|
|
||||||
install -Dm755 -t "$out/share/qutebrowser/scripts/" $(find scripts -type f)
|
|
||||||
install -Dm755 -t "$out/share/qutebrowser/userscripts/" misc/userscripts/*
|
|
||||||
|
|
||||||
# Patch python scripts
|
# Patch python scripts
|
||||||
buildPythonPath "$out $propagatedBuildInputs"
|
buildPythonPath "$out $propagatedBuildInputs"
|
||||||
scripts=$(grep -rl python "$out"/share/qutebrowser/{user,}scripts/)
|
scripts=$(grep -rl python "$out"/share/qutebrowser/{user,}scripts/)
|
||||||
|
@ -156,10 +149,10 @@ buildPythonApplication {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/The-Compiler/qutebrowser";
|
homepage = "https://github.com/qutebrowser/qutebrowser";
|
||||||
description = "Keyboard-focused browser with a minimal GUI";
|
description = "Keyboard-focused browser with a minimal GUI";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ jagajaga rnhmjoj ebzzry dotlambda ];
|
|
||||||
platforms = if enableWideVine then [ "x86_64-linux" ] else backendPackage.meta.platforms;
|
platforms = if enableWideVine then [ "x86_64-linux" ] else backendPackage.meta.platforms;
|
||||||
|
maintainers = with maintainers; [ jagajaga rnhmjoj ebzzry dotlambda nrdxp ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue