summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 578815fd8017e7cfba10ed5e05c32e3b135e4912 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Albin Larsson <mail@albinlarsson.com>
# Contributor: Aleksandr Gornostal <ulauncher.app@gmail.com>

# To install, run `makepkg -is`

pkgname=ulauncher-git
pkgver=DEV
pkgrel=5
pkgdesc='Application launcher for Linux'
arch=('any')
url="http://ulauncher.io"
license=('GPL3')
# Note: python-xlib is not used directly, but needed by EWMH, which is vendored
depends=('gtk3' 'webkit2gtk-4.1' 'python-cairo' 'python-gobject' 'python-xlib' 'python-levenshtein')
makedepends=('git' 'yarn' 'python-setuptools')
checkdepends=('desktop-file-utils')
optdepends=('gtk-layer-shell: wayland layer shell integration' 'xapp: tray icon library - single click support' 'libappindicator-gtk3: tray icon library')
install="ulauncher.install"
provides=("ulauncher")
conflicts=("ulauncher")
source=("ulauncher::git+https://github.com/Ulauncher/Ulauncher.git")

sha256sums=('SKIP')

build() {
  cd ulauncher || exit
  make prefs
  env PATH="$(getconf PATH)" python setup.py build
}

check() {
  cd ulauncher || exit
  desktop-file-validate "io.ulauncher.Ulauncher.desktop"
}

pkgver() {
  cd ulauncher || exit
  git describe --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd ulauncher || exit
  export PYTHONHASHSEED=0
  env PATH="$(getconf PATH)" python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  find $pkgdir -type d -name __pycache__ | xargs rm -rf
}