blob: 0fb3b05dfcc6d30c76946c4a0a9809f2800552fe (
plain)
1 # Description: Minimal X screenshot utility
2 # URL: https://github.com/neXromancers/shotgun
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: rust xorg-libx11 xorg-libxrandr
5 # Optional: hacksaw
6
7 name=shotgun
8 version=2.2.0
9 release=1
10 source=(https://github.com/neXromancers/shotgun/archive/v$version/$name-$version.tar.gz)
11
12 build() {
13 cd $name-$version
14
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
19 cargo update
20 cargo fetch
21 cargo build --release --locked
22 install -Dt $PKG/usr/bin target/release/shotgun
23 }
|