forked from sarmbruster/thinkpad_x1_yoga_rotation
-
Notifications
You must be signed in to change notification settings - Fork 2
/
PKGBUILD
28 lines (24 loc) · 1023 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
# Maintainer: hensur <[email protected]>
pkgname='yoga370d-git'
_pkgname='yoga370d'
pkgver=r18.37e99a7
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"
}