blob: f9d9a7039cb0b264cf5de0d8dd75ccc5264f7855 (
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
|
# Maintainer: Y7n05h <Y7n05h(aT)protonmail--d0t--com>
# Contributor: Lyr <lyr-7d1h@pm.me>
pkgname=sworkstyle-git
_pkgname=sworkstyle
pkgver=1.2.2.r2.g668ed8e
pkgrel=2
pkgdesc="Swayest Workstyle - This tool will rename workspaces to the icons configured. Mainly meant for Sway WM"
arch=("x86_64")
url="https://github.com/Lyr-7D1h/swayest_workstyle"
license=("MIT")
depends=("gcc-libs")
optdepends=("otf-font-awesome")
makedepends=("cargo" "git")
source=("$pkgname::git+$url"
"sworkstyle.man")
conflicts=(sworkstyle)
sha256sums=('SKIP'
'94b1c145d40a135897dd49e4652dce52a33172894815f88e942809491f8bc07b')
pkgver() {
cd ${pkgname}
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd ${pkgname}
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd ${pkgname}
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
check() {
cd ${pkgname}
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen
}
package() {
cd ${pkgname}
install -D -m755 "target/release/$_pkgname" "$pkgdir/usr/bin/sworkstyle"
install -D -m644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -D -m644 "$srcdir/$_pkgname.man" "$pkgdir/usr/share/man/man1/$_pkgname.1"
}
|