[crux-commits] ports/contrib (refs/remotes/origin/3.6): shotgun: added missing dependency git

crux at crux.nu crux at crux.nu
Sat Apr 10 19:05:50 UTC 2021


commit 70d2b0b435c60fb6eade3a8502015a40bc419ff1
Author: Tim Biermann <tbier at posteo.de>
Date:   Sun Feb 21 13:41:29 2021 +0000

    shotgun: added missing dependency git

diff --git a/shotgun/.signature b/shotgun/.signature
index 2880e610f..72b007698 100644
--- a/shotgun/.signature
+++ b/shotgun/.signature
@@ -1,5 +1,5 @@
 untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF3275EdjwK5GsiVPIE3gik9nr9Wm4+oPqUU/DL0jvoPvjcsdU3Itv76Dk5BZ1rb+n48vNHk+EA9+Grj4DsipQ3w0=
-SHA256 (Pkgfile) = 4430a55e56afd1287bcc8846aa5823c6e07e7be10514b74b67ff1f5f922a419a
+RWSagIOpLGJF39qqOLicFP7P2GsjMsRDRkNwUo3VJgRVNXJiD9jICVF0qjjJq4cCXSoPHuMyDoZxeE0djtnCBcet7/7iLwVkcQU=
+SHA256 (Pkgfile) = 52b64c3549f9389a83327ff928760df1709e5d5c115ff73c6838c872caa98d0e
 SHA256 (.footprint) = ed7571fc04ecb0f3d8c8c2c833ad729d8bf238d2a21c93fb00f901b9bbaa8d65
 SHA256 (shotgun-2.2.0.tar.gz) = c02df7284c8757f4592ce7dcbbd11330ea926379c5ff313f4932a7cbae00d24b
diff --git a/shotgun/Pkgfile b/shotgun/Pkgfile
index 0fb3b05df..294d9539b 100644
--- a/shotgun/Pkgfile
+++ b/shotgun/Pkgfile
@@ -1,7 +1,7 @@
 # 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
+# Depends on: git rust xorg-libx11 xorg-libxrandr
 # Optional: hacksaw
 
 name=shotgun
@@ -10,14 +10,12 @@ 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
+  cargo update --manifest-path $name-$version/Cargo.toml
+  cargo fetch --manifest-path $name-$version/Cargo.toml
+  cargo build --release --locked --manifest-path $name-$version/Cargo.toml
+  install -Dt $PKG/usr/bin $name-$version/target/release/shotgun
 }


More information about the crux-commits mailing list