forked from kozec/sc-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
31 lines (27 loc) · 834 Bytes
/
PKGBUILD
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
# PKGBUILD that builds package from git.
# Run 'makepkg -i' and hope for best :)
pkgname=sc-controller-git
pkgver=v0.2.9.r7.e778a5b
pkgrel=1
pkgdesc='User-mode driver and GTK3 based GUI for Steam Controller'
arch=('any')
url='https://github.com/kozec/sc-controller'
license=('GPL2')
depends=('gtk3' 'python2-gobject' 'python2-cairo' 'pylibacl')
makedepends=('python2-setuptools' 'git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('sc-controller'::'git+https://github.com/kozec/sc-controller.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --tags --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/${pkgname%-git}"
python2 setup.py build
}
package() {
cd "$srcdir/${pkgname%-git}"
python2 setup.py install --root="${pkgdir}" --optimize=1
}