-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
44 lines (39 loc) · 1.15 KB
/
PKGBUILD
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
# Maintainer: Peter Henry <[email protected]>
pkgname="fluidspaces-rs"
_pkgname="fluidspaces"
pkgver=0.5.1
pkgrel=1
pkgdesc="Daemon written in Rust to manage dynamically named i3 workspaces."
arch=('x86_64')
url="https://github.com/mosbasik/fluidspaces-rs"
license=('Apache')
depends=('dmenu')
makedepends=("rustup" "git")
# optdepends=()
provides=($_pkgname)
conflicts=($_pkgname)
# replaces=()
# backup=()
options=()
# changelog=
source=("$pkgname::git+https://github.com/mosbasik/fluidspaces-rs.git#tag=v0.5.1")
# noextract=()
# md5sums=() #autofill using updpkgsums
sha256sums=('SKIP')
# pkgver() {
# cd "$pkgname"
# git describe --long --tags | sed 's/^v// ; s/\([^-]*-g\)/r\1/ ; s/-/\./g'
# }
prepare() {
rustup toolchain install stable
}
build () {
cd "$pkgname"
env CARGO_INCREMENTAL=0 cargo +stable build --release
}
package() {
cd "$pkgname"
install -D -m755 "$srcdir/$pkgname/target/release/fluidspaces" "$pkgdir/usr/bin/fluidspaces"
install -D -m755 "$srcdir/$pkgname/target/release/fluidspaces-msg" "$pkgdir/usr/bin/fluidspaces-msg"
install -D -m644 "$srcdir/$pkgname/fluidspaces.service" "$pkgdir/usr/lib/systemd/user/fluidspaces.service"
}