summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: afc96bbef7fb9f5c1d335c6540b1c8eb873e330a (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
34
35
36
37
# Maintainer: Timothy Newton <timothynewton1998@gmail.com>
pkgname=auto-rotation-hdaps-git
pkgver=r9.97510cc
pkgrel=1
pkgdesc="This application adds auto-rotation functionality to tablet/laptop devices with Linux that have HDAPS accelerometers such as the X201 tablet Thinkpad."
arch=("any")
url="https://github.com/Unicornasaurous/auto_rotation_hdaps.git"
license=("MIT")
groups=()
depends=("libinput" "tp_smapi" "python")
makedepends=("git")
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install="$pkgname.install"
changelog=
source=("$pkgname::git+$url")
noextract=()
sha256sums=("SKIP")

pkgver()
{
	cd $pkgname
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd $pkgname

	install -d $pkgdir/usr/bin

	cp auto_rotate.py $pkgdir/usr/bin
	cp tablet_mode_detection.py $pkgdir/usr/bin
}