summaryrefslogtreecommitdiff
path: root/shotgun/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'shotgun/Pkgfile')
-rw-r--r--shotgun/Pkgfile23
1 files changed, 23 insertions, 0 deletions
diff --git a/shotgun/Pkgfile b/shotgun/Pkgfile
new file mode 100644
index 000000000..0fb3b05df
--- /dev/null
+++ b/shotgun/Pkgfile
@@ -0,0 +1,23 @@
+# Description: Minimal X screenshot utility
+# URL: https://github.com/neXromancers/shotgun
+# Maintainer: Tim Biermann, tbier at posteo dot de
+# Depends on: rust xorg-libx11 xorg-libxrandr
+# Optional: hacksaw
+
+name=shotgun
+version=2.2.0
+release=1
+source=(https://github.com/neXromancers/shotgun/archive/v$version/$name-$version.tar.gz)
+
+build() {
+ cd $name-$version
+
+ 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/shotgun
+}

Generated by cgit