blob: 2f446370ab14cf45189e5b097b3a2fd2214c1d02 (
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
41
42
43
44
45
46
47
48
49
|
# Maintainer: oi_wtf <brainpower at mailbox dot org>
pkgname=tuxedo-touchpad-switch
pkgver=1.0.3
pkgrel=2
pkgdesc="A Linux userspace driver to enable and disable the touchpads on TongFang/Uniwill laptops"
url="https://github.com/tuxedocomputers/tuxedo-touchpad-switch"
arch=(x86_64)
license=(GPL3)
depends=("glib2")
makedepends=("git" "cmake" "ninja")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
_commit="88c8e4561087a3c7e8bf60bdd72a1f0005864eb0"
#https://github.com/tuxedocomputers/tuxedo-touchpad-switch/archive/v$pkgver/${pkgname}-${pkgver}.tar.gz
source=(
git+https://github.com/tuxedocomputers/tuxedo-touchpad-switch.git#commit=$_commit
0001-plasma_5-24.patch
)
sha256sums=(
SKIP
5f9f5e02c2913ea16936961c4bd02ad444123d0a6cc441fa8f5cab9b5f905b7b
)
#sha256sums=('dd4fa6871735fed3e094f177f0a2d0861fd3411ef4e6fbf1fbba5405a01ae219')
prepare() {
cd "${pkgname}"
patch -p1 -i "${srcdir}/0001-plasma_5-24.patch"
}
build() {
cd "${pkgname}"
cmake -B builddir -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
ninja -C builddir
}
package() {
cd "${pkgname}"
DESTDIR="${pkgdir}" ninja -C builddir install
}
|