blob: f07646d460aa4380a76b1f2554266e3ba6fa7eab (
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
|
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
# Contributor: Fabrizio Pietrucci <bamlessnty5@gmail.com>
pkgname=syngestures
_pkgname=syngesture
pkgver=2.0.0
_commit=77b2e29d0c842b3c8d6bf004d3e9ef499f87cbbc
pkgrel=1
pkgdesc="Swipes and gestures for Linux with the MT multitouch protocol"
url="https://github.com/mqudsi/syngesture"
license=('MIT')
arch=('x86_64')
makedepends=('cargo' 'git')
optdepends=("wmctrl: needed for syngestures-switch-ws for X11 and Wayland compatible workspace switching"
"xdotool: simulates keyboard and mouse actions for Xorg or XWayland based apps")
source=("git+$url.git#commit=$_commit"
"$pkgname.desktop"
"$pkgname.toml"
"$pkgname-switch-ws")
sha256sums=('SKIP'
'244d8dc40c0bb6eea28a05c22b4a6950bbf0ecfc358cbc4c1500aae805f87883'
'56496557c63baa472dc426ee0215c80b63859983bc6977078e34266bda5fce7b'
'587366d03b3e70f8cbdd78f557bdf5191ff9937f9f86afa0d7ff78c490b015d8')
backup=("etc/$pkgname.toml")
prepare() {
cd $_pkgname
export CARGO_HOME="$srcdir/CARGO_HOME"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd $_pkgname
export CARGO_HOME="$srcdir/CARGO_HOME"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
install -Dm644 $pkgname.toml -t "$pkgdir/etc"
install -Dm644 $pkgname.desktop -t "$pkgdir/usr/share/applications"
install -Dm644 $_pkgname/README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm644 $_pkgname/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm755 $pkgname-switch-ws -t "$pkgdir/usr/bin"
install -Dm755 $_pkgname/target/release/$pkgname -t "$pkgdir/usr/bin"
}
|