blob: fd6b9fd835ddf28706f8bf6073d11d96843400f0 (
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
|
# Maintainer: hensur <me@hensur.de>
pkgname='yoga370d-git'
_pkgname='yoga370d'
pkgver=r22.a057f49
pkgrel=1
pkgdesc='A python daemon which automatically enables tablet mode on the Thinkpad Yoga 370. This means switching off the TouchPad and TrackPoint. The script can also disable the Finger Input if the Pen is in use. It will optionally rotate the screen.'
url="https://github.com/hensur/yoga370d"
source=('yoga370d::git+https://github.com/hensur/yoga370d')
license=('GPL3')
arch=('any')
depends=('xorg-xrandr' 'acpid' 'python-dbus' 'iio-sensor-proxy' 'python-docopt' 'xorg-xinput' 'xf86-input-wacom' 'python')
md5sums=('SKIP')
makedepends=('git')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd $srcdir/$_pkgname
# yoga370d binary
install -Dm755 "yoga370d" "${pkgdir}/usr/local/bin/yoga370d"
# ThinkPad Yoga Desktop File
install -Dm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
}
|