blob: 9eac11c44969bbc2e1f6c498684be09a38024134 (
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
50
51
|
# Maintainer: Tobias Gerold <tobias at g3ro dot eu>
pkgname=xremap-kde
_pkgname=xremap
pkgver=0.10.0
_pkgver=0.10.0
pkgrel=1
pkgdesc="Key remapper for X11 and Wayland - KDE Edition"
arch=('x86_64' 'aarch64')
url="https://github.com/xremap/xremap"
license=('MIT')
makedepends=(cargo)
provides=('xremap')
source=("$_pkgname-$_pkgver.tar.gz::https://static.crates.io/crates/$_pkgname/$_pkgname-$_pkgver.crate"
)
sha256sums=('56278615ad9e8f9ed920dc7e6d198e0c23564c174383a16a6247c10f08a3fb8e')
prepare() {
cd "$srcdir/$_pkgname-$_pkgver/"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$srcdir/$_pkgname-$_pkgver/"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --features kde
# alternatives for --features:
# x11
# gnome # GNOME Wayland
# wlroots # Sway, Hyprland, etc.
}
check() {
cd "$srcdir/$_pkgname-$_pkgver/"
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --features kde
# alternatives for --features see above
}
package() {
cd "$srcdir/$_pkgname-$_pkgver/"
find target/release \
-maxdepth 1 \
-executable \
-type f \
-exec install -Dm0755 -t "$pkgdir/usr/bin/" {} +
}
|