summaryrefslogtreecommitdiff
path: root/community-staging/virtkey
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-11 00:35:42 -0700
committerroot <root@rshg054.dnsready.net>2012-10-11 00:35:42 -0700
commitdd7c17a54a4b6e2f08376a1afa8e75de661cc3d4 (patch)
treea9ccc072c17ea4a3f2fbdfa6c82c017a102839ad /community-staging/virtkey
parent769ba4645df3c2f793bc2d3ee245573b79b206d3 (diff)
Thu Oct 11 00:35:41 PDT 2012
Diffstat (limited to 'community-staging/virtkey')
-rw-r--r--community-staging/virtkey/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/community-staging/virtkey/PKGBUILD b/community-staging/virtkey/PKGBUILD
new file mode 100644
index 000000000..7d350b553
--- /dev/null
+++ b/community-staging/virtkey/PKGBUILD
@@ -0,0 +1,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.61.0
+pkgrel=2
+arch=('i686' 'x86_64')
+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=('536d30acb2c8ddadc6b4a26fc01e8390')
+
+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
+}