import 'compile/python' name=qutebrowser version=0.8.4 update_url="https://github.com/The-Compiler/$name/releases" dlextract "https://github.com/The-Compiler/$name/releases/download/v$version/$name-$version.tar.gz" \ '5bba7dae261762d423c20a7bc8bf0734' header_end cd "$name-$version" # Fix paths sed -i -e "s/usr\/share/$(safe_sed "$dir_prefix/$dir_datadir")/" qutebrowser/utils/standarddir.py compile_python 3 sed -e '/^Name=/s/$/ (Webengine)/' \ -e '/^Exec=/s/%u/--backend webengine &/' "$name.desktop" > "$name-webengine.desktop" # Install manpage a2x -f manpage "doc/$name.1.asciidoc" install -Dm644 -t "$dir_install/$dir_prefix/$dir_mandir/man1" "doc/$name.1" # Install desktop and icons install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/applications" "$name.desktop" "$name-webengine.desktop" for x in 16 24 32 48 64 96 128 256 512; do install -Dm644 "icons/$name-${x}x$x.png" "$dir_install/$dir_prefix/$dir_datadir/icons/hicolor/${x}x$x/apps/$name.png" done install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/icons/hicolor/scalable/apps" "icons/$name.svg" # Install userscripts install -Dm755 -t "$dir_install/$dir_prefix/$dir_datadir/$name/userscripts/" misc/userscripts/* # vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: