diff options
author | Josip Ponjavic | 2017-02-28 19:36:19 +0100 |
---|---|---|
committer | Josip Ponjavic | 2017-02-28 19:36:19 +0100 |
commit | f98f40a5717fcc35abd25a0970407491bb4b3b6d (patch) | |
tree | e55f053f4d7eb70ef19027cf140db9347e28282a /PKGBUILD | |
download | aur-f98f40a5717fcc35abd25a0970407491bb4b3b6d.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b8b34a3f9606 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Josip Ponjavic <josipponjavic at gmail dot com> + +pkgname=ulauncher-git +pkgver=2.0.14.r0.gbdf867f +pkgrel=1 +pkgdesc='Convenient and fast way to launch your desktop applications.' +arch=('any') +url="http://ulauncher.io" +license=('GPL3') +depends=('gobject-introspection-runtime' 'libappindicator-gtk3' 'libkeybinder3' 'webkit2gtk' + "python2-"{dbus,gobject,pyinotify,pysqlite,levenshtein,xdg}) +makedepends=('git' 'npm' "python2-"{distutils-extra,setuptools}) +provides=("${pkgname%-*}") +conflicts=("${pkgname%-*}") +source=("ulauncher::git+https://github.com/Ulauncher/Ulauncher.git") +sha256sums=('SKIP') + +pkgver() { + cd ulauncher + git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g' +} + +prepare() { + cd ulauncher + sed -i "s/%VERSION%/${pkgver%.*.*}/g" setup.py + find -iname "*.py" | xargs sed -i 's=\(^#! */usr/bin.*\)python *$=\1python2=' +} + +build() { + cd ulauncher + python2 setup.py build + sh build-utils/build-preferences.sh +} + +package() { + cd ulauncher + install -Dm644 build/share/applications/ulauncher.desktop "$pkgdir/usr/share/applications/ulauncher.desktop" + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + sed -i 's=\(^#! */usr/bin.*\)python *$=\1python2=' "$pkgdir/usr/share/ulauncher/timer-shortcut/timer.py.src" + rm -rf "$pkgdir"/usr/share/ulauncher/preferences/{no*,src,bow*,gul*,pack*} +} |