summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b227d8f6c230c4e731ef07bed9f3915582b761a6 (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
# Maintainer: mirandir <mirandir@orange.fr>

pkgname=joystickwake-git
_realname=joystickwake
pkgver=e55e11f
pkgrel=3
pkgdesc="Joystick-aware screen waker. This program attempts to prevent screen blankers from activating while joysticks and other game controllers are in use."
arch=('any')
url='https://github.com/foresto/joystickwake'
license=('MIT')
depends=('python-pyudev' 'python-xlib')
makedepends=('git' 'python-docutils' 'gzip')
source=(joystickwake::git+https://github.com/foresto/joystickwake)
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_realname}"
  git describe --always | sed 's|-|.|g'
}

package() {
   cd $srcdir/$_realname
   python setup.py install --prefix=/usr --root=$pkgdir
   # manpage
   install -d $pkgdir/usr/share/man/man1
   rst2man README.rst joystickwake.1
   gzip joystickwake.1
   mv joystickwake.1.gz $pkgdir/usr/share/man/man1
}