summaryrefslogtreecommitdiff
path: root/community/python2-virtkey/PKGBUILD
blob: 08635503179e255d5b98eaf3bd3e0f821334fb83 (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
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: codl <codl@aquageek.net>
# Contributor: Megamixman <Megamixman@gmail.com>

pkgname=python2-virtkey
_pkgname=python-virtkey
pkgver=0.60.0
pkgrel=3
pkgdesc="Python extension for emulating keypresses and getting layout information from the X server"
arch=('i686' 'x86_64' 'mips64el')
url="https://launchpad.net/python-virtkey"
license=('LGPL')
depends=('python2' 'libxtst' 'gtk2')
replaces=('python-virtkey')
provides=('python-virtkey')
source=(http://launchpad.net/$_pkgname/${pkgver%.*}/$pkgver/+download/$_pkgname-$pkgver.tar.gz)
md5sums=('f4f6776f379bc635a29eac83a14fdde5')

build() {
  cd "$srcdir/$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"

  python2 setup.py install --root=$pkgdir/ --optimize=1
}