blob: e66a5121f394d7dde72c5076f597810c02bada0b (
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
39
40
|
# Maintainer: Andrew Demarest <contact@yonderserver.com>
pkgname=tablet-switch-git
pkgver=0.9
pkgrel=3
pkgdesc='A system tray application to manually switch between 2-in-1 laptop modes.'
arch=('x86_64')
url='https://github.com/ademarest/tablet-switch'
install='tablet-switch-git.install'
license=('GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007')
depends=(
'qt6-base'
'qt6-tools'
'libevdev'
)
optdepends=(
'gnome-shell-extension-appindicator'
)
source=('git+https://github.com/ademarest/tablet-switch.git')
sha256sums=('SKIP')
build(){
cd tablet-switch;
rm -rf build && mkdir -p build && cd build;
DESTDIR="$pkgdir" PREFIX="/usr" qmake6 ../src/tablet-switch.pro;
make;
}
package(){
cd "${srcdir}/tablet-switch/src";
install -Dm644 "tablet-switch.desktop" \
"${pkgdir}/usr/share/applications/${pkgname}.desktop";
cd "${srcdir}/tablet-switch/build";
make install;
msg "IMPORTANT!!"
msg ""
msg "The user which will run tablet-switch must be added to the input group."
msg ""
}
|