forked from ports/contrib
24 lines
651 B
Plaintext
24 lines
651 B
Plaintext
|
# Description: select operation for X11 screens
|
||
|
# URL: https://github.com/neXromancers/hacksaw
|
||
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||
|
# Depends on: rust xorg-libxcb
|
||
|
|
||
|
name=hacksaw
|
||
|
version=1.0.4
|
||
|
release=1
|
||
|
_commit=fd6b6bd1be435dd546e7efd0ed8800623bb098fa
|
||
|
source=(https://github.com/neXromancers/hacksaw/archive/$_commit/$name-$version.tar.gz)
|
||
|
|
||
|
build() {
|
||
|
cd $name-$_commit
|
||
|
|
||
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
||
|
mkdir "$PKGMK_SOURCE_DIR/rust" || true
|
||
|
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
|
||
|
|
||
|
cargo update
|
||
|
cargo fetch
|
||
|
cargo build --release --locked
|
||
|
install -Dt $PKG/usr/bin target/release/hacksaw
|
||
|
}
|