summaryrefslogtreecommitdiff
path: root/handlr/Pkgfile
blob: 6c114aa7a88949b761636be13f651471e35ad1f7 (plain)
    1 # Description: xdg-utils replacement written in rust
    2 # URL: https://github.com/chmln/handlr
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: rust xdg-utils
    5 
    6 name=handlr
    7 version=0.6.4
    8 release=2
    9 source=(https://github.com/chmln/handlr/archive/v$version/$name-$version.tar.gz
   10   xdg-open.sh)
   11 
   12 build() {
   13   prt-get isinst zsh && install -Dm644 $SRC/$name-$version/completions/_handlr \
   14     $PKG/usr/share/zsh/site-functions/_handlr
   15   prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
   16   mkdir "$PKGMK_SOURCE_DIR/rust" || true
   17   export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
   18   cargo update --manifest-path $name-$version/Cargo.toml
   19   cargo build --release --locked --manifest-path $name-$version/Cargo.toml
   20   install -Dt $PKG/usr/bin $name-$version/target/release/$name
   21   install -Dm755 $SRC/xdg-open.sh $PKG/usr/local/bin/xdg-open
   22 }

Generated by cgit