swayr: initial commit, version 0.22.0

This commit is contained in:
Tim Biermann 2022-10-30 10:11:50 +00:00
parent c80f1c9d9c
commit 2023e35474
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 32 additions and 0 deletions

4
swayr/.footprint Normal file
View File

@ -0,0 +1,4 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/swayr
-rwxr-xr-x root/root usr/bin/swayrd

5
swayr/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3y/OQGud5PSYxepXIZbv/y0P1Irjx3/yi1NUi8mD/CqQhATkAtSrhDX6MrmNcAxhu3HHXb11HyrTWH+hMhZI5gE=
SHA256 (Pkgfile) = 8a690e4c96a216d651b5c1af4d2652e965a9151a05da7de826ca350b4e620f8c
SHA256 (.footprint) = 787fa9714fc9c7b81545303008be790bb8c9d01fbaf8315b2ef3feb792889160
SHA256 (swayr-0.22.0.tar.gz) = 341dcab11ff2f9167748bbecf72a8fdcad5af07139f744fd13b63d3018cf1aac

23
swayr/Pkgfile Normal file
View File

@ -0,0 +1,23 @@
# Description: a window switcher for sway
# URL: https://sr.ht/~tsdh/swayr/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: rust
name=swayr
version=0.22.0
release=1
# https://git.sr.ht/~tsdh/swayr/refs
_commit=c4893cbcedb5948985cc49d2af5998092c0d6e71
source=(https://git.sr.ht/~tsdh/swayr/archive/$_commit.tar.gz)
renames=($name-$version.tar.gz)
build() {
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
mkdir "$PKGMK_SOURCE_DIR/rust" || true
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
cargo build --release --manifest-path $name-$_commit/Cargo.toml
install -Dt $PKG/usr/bin $name-$_commit/target/release/$name
install -Dt $PKG/usr/bin $name-$_commit/target/release/${name}d
}