summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9355961a648c580f88447785ebbdda9b1c7909ff (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
# Maintainer: Kalle Lindqvist <kalle.lindqvist@mykolab.com>
pkgname=xkeysnail-git
pkgver=r114.gbf3c93b
pkgrel=1
pkgdesc="Yet another keyboard remapping tool for X environment."
arch=('any')
url="https://github.com/mooz/xkeysnail"
license=('GPL')
depends=('python'
         'python-xlib'
         'python-evdev'
         'python-inotify-simple'
         'python-appdirs')
makedepends=('python-setuptools'
             'git')
provides=('xkeysnail')
conflicts=('xkeysnail')
source=("git://github.com/mooz/xkeysnail.git")
md5sums=("SKIP")
_gitname="xkeysnail"

pkgver() {
    cd "$srcdir/$_gitname"
    git describe --long | sed 's/^HEAD-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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