contrib/cbs/Pkgfile

23 lines
782 B
Plaintext
Raw Normal View History

2020-11-19 09:39:08 +01:00
# Description: interface to manage clipboard from the command line
# URL: https://github.com/robatipoor/cbs
# Maintainer: Tim Biermann, tbier at posteo dot de
2021-05-30 00:52:38 +02:00
# Depends on: rust xorg-libxcb
2020-11-19 09:39:08 +01:00
name=cbs
version=0.1.0
release=1
_commit=e3f75bcd1045d65727537b700ee3dabcdc12266a
source=(https://github.com/robatipoor/cbs/archive/$_commit/$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"
2021-05-30 00:52:38 +02:00
cargo update --manifest-path $name-$_commit/Cargo.toml
cargo fetch --manifest-path $name-$_commit/Cargo.toml --locked
cargo build --release --locked --manifest-path $name-$_commit/Cargo.toml
install -Dt $PKG/usr/bin $name-$_commit/target/release/$name
2020-11-19 09:39:08 +01:00
}