ports/contrib (3.7): swayr: initial commit, version 0.22.0
commit 2023e354742917a4ffa11d7392b943444a15bef8 Author: Tim Biermann <tbier@posteo.de> Date: Sun Oct 30 10:11:50 2022 +0000 swayr: initial commit, version 0.22.0 diff --git a/swayr/.footprint b/swayr/.footprint new file mode 100644 index 000000000..4b03be20d --- /dev/null +++ b/swayr/.footprint @@ -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 diff --git a/swayr/.signature b/swayr/.signature new file mode 100644 index 000000000..1c3249752 --- /dev/null +++ b/swayr/.signature @@ -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 diff --git a/swayr/Pkgfile b/swayr/Pkgfile new file mode 100644 index 000000000..61db253d0 --- /dev/null +++ b/swayr/Pkgfile @@ -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 +}
participants (1)
-
crux@crux.nu