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

pkgbase=virtkey
pkgname=('python2-virtkey' 'python-virtkey')
pkgver=0.62.0
pkgrel=1
arch=('i686' 'x86_64' 'mips64el')
url="https://launchpad.net/virtkey"
license=('LGPL')
makedepends=('python2' 'python' 'libxtst' 'gtk2')
source=(http://launchpad.net/$pkgbase/${pkgver%.*}/$pkgver/+download/$pkgbase-$pkgver.tar.gz)
md5sums=('2c6f2e5941501f74d754554c545a2186')

build() {
  cd "$srcdir"

  cp -a {,python2-}$pkgbase-$pkgver

  # Build python 2 module
  cd "$srcdir/python2-$pkgbase-$pkgver"
  python2 setup.py build

  # Build python 3 module
  cd "$srcdir/$pkgbase-$pkgver"
  python setup.py build
}

package_python2-virtkey() {
  pkgdesc="Python 2 extension for emulating keypresses and getting layout information from the X server"
  depends=('python2' 'libxtst' 'gtk2')

  cd "$srcdir/python2-$pkgbase-$pkgver"

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

package_python-virtkey() {
  pkgdesc="Python extension for emulating keypresses and getting layout information from the X server"
  depends=('python' 'libxtst' 'gtk2')

  cd "$srcdir/$pkgbase-$pkgver"

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