summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 331efa4d9d9ac7ed772d7bc88db89d37aa968b8c (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
38
# Maintainer: James Armstrong <jm.armstrong1207@gmail.com>
pkgname=detect-tablet-mode-git
pkgver=r29.626e81c
pkgrel=1
pkgdesc="Detects both normal & tablet mode, executing custom scripts/commands for each mode. See the github page for instructions."
arch=("any")
url="https://github.com/alesya-h/linux_detect_tablet_mode"
license=("MIT")
groups=()
depends=("ruby" "libinput")
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
	install -d $pkgdir/etc/

	cp watch_tablet $pkgdir/usr/bin
	cp watch_tablet.yml $pkgdir/etc/watch_tablet.yml.example
}