summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eee3b12be2cf16fa69ecc6b7cbbbda10804397f0 (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
# Maintainer: Luke Arms <luke@arms.to>
# Contributor: dustball

pkgname=quicktile-git
_pkgname=${pkgname%-git}
pkgver=422.ca8105d
pkgrel=2
epoch=1
url="https://github.com/ssokolow/quicktile"
pkgdesc="Adds window-tiling hotkeys to any X11 desktop"
arch=('any')
license=('GPL2')
depends=('python' 'gtk3' 'libwnck3' 'python-gobject' 'python-xlib')
optdepends=('python-dbus: required if you want to interact with QuickTile over D-Bus')
makedepends=('git' 'python-setuptools')
provides=('quicktile')
conflicts=('quicktile')
source=("git+https://github.com/ssokolow/quicktile.git")
sha512sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  printf '%s.%s' \
    "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_pkgname}"
  python setup.py build
}

package() {
  cd "${srcdir}/${_pkgname}"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}