blob: 2e7f08290f57fd9ea820a96517fadf069fe4baf6 (
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
|
_pkgname=pymacropad
pkgname=$_pkgname-git
pkgrel=1
pkgver=1.2.2.r1.gebfac84
pkgdesc="Utility program for binding actions to keys on a given input"
url="https://github.com/j-waters/pymacropad"
depends=('python-click'
'python-yaml'
'python-libevdev'
'python-pyxdg')
makedepends=('git' 'python-setuptools')
conflicts=('pymacropad')
provides=('pymacropad')
license=('GPL')
arch=('any')
source=("${_pkgname}::git+${url}.git")
md5sums=("SKIP")
pkgver() {
cd "$srcdir/$_pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${_pkgname}"
python setup.py build
}
package() {
cd "${srcdir}/${_pkgname}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
|