blob: d531dae6b8596a63007ca837e6a19170cd046787 (
plain)
1 # Description: A safe Rust crate for working with the Wayland clipboard
2 # URL: https://github.com/YaLTeR/wl-clipboard-rs
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: rust wayland
5
6 name=wl-clipboard-rs
7 version=0.7.0
8 release=1
9 source=(https://github.com/YaLTeR/wl-clipboard-rs/archive/v$version/$name-$version.tar.gz)
10
11 build() {
12 prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
13 mkdir "$PKGMK_SOURCE_DIR/rust" || true
14 export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
15
16 cargo build --release --manifest-path $name-$version/Cargo.toml \
17 --all --features=dlopen
18
19 install -Dt $PKG/usr/bin $name-$version/target/release/wl-paste
20 install -Dt $PKG/usr/bin $name-$version/target/release/wl-copy
21 install -Dt $PKG/usr/bin $name-$version/target/release/wl-clip
22 }
|