summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05a227b2cdfe969a4a1e4f9664af52676d967921 (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
# Maintainer: oi_wtf <brainpower at mailbox dot org>

pkgname=tuxedo-touchpad-switch
pkgver=1.0.9
pkgrel=1
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=(GPL-3.0-or-later)

depends=("glib2")
makedepends=("git" "cmake" "ninja")

provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")

#https://github.com/tuxedocomputers/tuxedo-touchpad-switch/archive/v$pkgver/${pkgname}-${pkgver}.tar.gz
#_commit="6f3ee2f9d7e30c575d7e1f4df355856af5289027" # tag v1.0.9
source=(
  git+https://github.com/tuxedocomputers/tuxedo-touchpad-switch.git#tag=v${pkgver}
)
sha256sums=('3d4f77f189cc1b1a40ea937db81f99cdc296ccae386e54bcda5bf86944eecf66')

#prepare() {
#  cd "${pkgname}"
#}

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
}