# Maintainer: Aleksandr Gornostal # To install, run `makepkg -is` pkgname=ulauncher pkgver=5.6.1 pkgrel=1 pkgdesc='Application launcher for Linux' arch=('any') url="https://ulauncher.io" license=('GPL3') depends=('gobject-introspection-runtime' 'libappindicator-gtk3' 'libkeybinder3' 'webkit2gtk' "python-"{dbus,gobject,cairo,pyinotify,levenshtein,xdg,websocket-client}) makedepends=('python-distutils-extra') provides=("${pkgname%-*}") conflicts=("${pkgname%-*}") source=("https://github.com/Ulauncher/Ulauncher/releases/download/5.6.1/ulauncher_5.6.1.tar.gz") sha256sums=('SKIP') build() { cd ulauncher python setup.py build } prepare() { cd ulauncher find -iname "*.py" | xargs sed -i 's=\(^#! */usr/bin.*\)python3 *$=\1python=' } package() { cd ulauncher install -Dm644 build/share/applications/ulauncher.desktop "$pkgdir/usr/share/applications/ulauncher.desktop" python setup.py install --root="$pkgdir" --optimize=1 --skip-build rm -rf "$pkgdir"/usr/share/ulauncher/preferences/{no*,src,bow*,gul*,pack*} find $pkgdir -type d -name __pycache__ | xargs rm -rf }