summaryrefslogtreecommitdiff
path: root/cbs/Pkgfile
blob: ad10954a6390985d2e4da6bf27b1fcea992bb0ed (plain)
    1 # Description: interface to manage clipboard from the command line
    2 # URL: https://github.com/robatipoor/cbs
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: rust xorg-libxcb
    5 
    6 name=cbs
    7 version=0.1.0
    8 release=1
    9 _commit=e3f75bcd1045d65727537b700ee3dabcdc12266a
   10 source=(https://github.com/robatipoor/cbs/archive/$_commit/$name-$version.tar.gz)
   11 
   12 build() {
   13   prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
   14   mkdir "$PKGMK_SOURCE_DIR/rust" || true
   15   export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
   16 
   17   cargo update --manifest-path $name-$_commit/Cargo.toml
   18   cargo fetch --manifest-path $name-$_commit/Cargo.toml --locked
   19   cargo build --release --locked --manifest-path $name-$_commit/Cargo.toml
   20 
   21   install -Dt $PKG/usr/bin $name-$_commit/target/release/$name
   22 }

Generated by cgit