summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ec94a57d1caa98cb14ad65e541870398f38cbebc (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
# Maintainer: Dmitry Kharitonov <darksab0r@gmail.com>
# Contributor: Dave Blair <mail@dave-blair.de>
pkgname=autokey-py3
pkgver=0.93.6
pkgrel=2
pkgdesc="Python 3 port of AutoKey, a desktop automation utility for Linux and X11 with new features."
url="https://github.com/guoci/autokey-py3"
depends=('python' 'wmctrl' 'hicolor-icon-theme' 'python-dbus' 'python-pyinotify' \
  'zenity' 'xautomation' 'imagemagick' 'xorg-xwd' 'python-xlib' 'python-six')
optdepends=('python-gobject: for GTK GUI'
            'gtksourceview3: for GTK GUI'
            'libnotify: for GTK GUI'
            'python-qscintilla: for QT GUI'
            'kdebindings-python: for QT GUI')
conflicts=('autokey' 'autokey-gtk' 'autokey-qt' 'autokey-data')
license=('GPL3')
arch=('any')
source=("https://pypi.io/packages/source/a/${pkgname}/${pkgname}-${pkgver}.tar.gz"
        "setup-kde4-fix.patch")
sha256sums=('2428bf22ffd036bb30b17195f3c8e9384ad832008e6cde161fecb823efb47339'
            'd117331d6024049e4557e485d1669d28b16ab75d8ef55a4fcb2243828bc9f956')
install=$pkgname.install

prepare() {
    cd "$srcdir/$pkgname-$pkgver"
    patch -p0 -i ../setup-kde4-fix.patch
}


build() {
    cd "$srcdir/$pkgname-$pkgver"
    python setup.py build
}

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