blob: b7e66171c941db110a4fb01f3b9290529836fbe5 (
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: Bruno Miguel <bruno@privacyrequired.com>
pkgname=kdotool-git
pkgver=0.2.1.e2f468b
pkgrel=4
pkgdesc='xdotool-like for KDE Wayland'
arch=(x86_64)
url='https://github.com/jinliu/kdotool'
source=('git+https://github.com/jinliu/kdotool')
license=(Apache-2.0)
depends=(plasma-wayland-protocols)
makedepends=(git rust cargo)
provides=(kdotool)
source=(git+$url.git)
sha256sums=('SKIP')
md5sums=('SKIP')
pkgver() {
cd "$provides"
git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)//;s/-/./g'
}
prepare() {
cd "$provides"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$provides"
cargo build --all-features --release
}
check() {
cd "$provides"
cargo test --frozen --all-features
}
package() {
install -Dm755 "$srcdir/$provides/target/release/kdotool" "$pkgdir/usr/bin/kdotool"
install -Dm755 "$srcdir/$provides/LICENSE" "$pkgdir/usr/share/licenses/$provides/LICENSE"
}
|