forked from Ulauncher/Ulauncher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD.template
36 lines (31 loc) · 1 KB
/
PKGBUILD.template
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
# Maintainer: Aleksandr Gornostal <[email protected]>
# To install, run `makepkg -is`
pkgname=ulauncher
pkgver=%VERSION%
pkgrel=1
pkgdesc='Application launcher for Linux'
arch=('any')
url="https://ulauncher.io"
license=('GPL3')
depends=('gobject-introspection-runtime' 'libkeybinder3' 'webkit2gtk'
"python-"{dbus,gobject,cairo,pyinotify,levenshtein,xdg,websocket-client})
makedepends=('python-distutils-extra')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
source=("%SOURCE%")
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
}