You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
36 lines
1.2 KiB
8 years ago
|
import 'compile/python'
|
||
|
|
||
|
name=qutebrowser
|
||
8 years ago
|
version=0.8.4
|
||
8 years ago
|
update_url="https://github.com/The-Compiler/$name/releases"
|
||
|
|
||
|
dlextract "https://github.com/The-Compiler/$name/releases/download/v$version/$name-$version.tar.gz" \
|
||
8 years ago
|
'5bba7dae261762d423c20a7bc8bf0734'
|
||
8 years ago
|
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
|
||
|
|
||
8 years ago
|
sed -e '/^Name=/s/$/ (Webengine)/' \
|
||
|
-e '/^Exec=/s/%u/--backend webengine &/' "$name.desktop" > "$name-webengine.desktop"
|
||
|
|
||
8 years ago
|
# Install manpage
|
||
|
a2x -f manpage "doc/$name.1.asciidoc"
|
||
8 years ago
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_mandir/man1" "doc/$name.1"
|
||
8 years ago
|
|
||
|
# Install desktop and icons
|
||
8 years ago
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/applications" "$name.desktop" "$name-webengine.desktop"
|
||
8 years ago
|
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
|
||
8 years ago
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/icons/hicolor/scalable/apps" "icons/$name.svg"
|
||
8 years ago
|
|
||
|
# Install userscripts
|
||
|
install -Dm755 -t "$dir_install/$dir_prefix/$dir_datadir/$name/userscripts/" misc/userscripts/*
|
||
|
|
||
8 years ago
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:
|