import 'compile/python' name=qutebrowser version=0.7.0 update_url="https://github.com/The-Compiler/$name/releases" dlextract "https://github.com/The-Compiler/$name/releases/download/v$version/$name-$version.tar.gz" \ '8f9feba57eb648d4c5b832bddb741be4' 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 # Install manpage a2x -f manpage "doc/$name.1.asciidoc" install -Dm644 "doc/$name.1" "$dir_install/$dir_prefix/$dir_mandir/man1/$name.1" # Install desktop and icons install -Dm644 "$name.desktop" "$dir_install/$dir_prefix/$dir_datadir/applications/$name.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 "icons/$name.svg" "$dir_install/$dir_prefix/$dir_datadir/icons/scalable/apps/$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 et: