Fix build
This commit is contained in:
1 parent
903e05fb16
commit
4d7fe73d9b
1 file changed
+16
-2
@@ -12,12 +12,26 @@ makedepends=(cargo)
|
|||||||
optdepends=(
|
optdepends=(
|
||||||
'slurp: default tool for selecting share regions'
|
'slurp: default tool for selecting share regions'
|
||||||
)
|
)
|
||||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/WhySoBad/hyprland-preview-share-picker/archive/refs/tags/v$pkgver.tar.gz")
|
_protocols_commit=3a5c2bda1c1a4e55cc1330c782547695a93f05b2
|
||||||
sha256sums=('dfbd6773884c24bb300d756420cc540dda0c3518e910e20d1538e7dd6c0990da')
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/WhySoBad/hyprland-preview-share-picker/archive/refs/tags/v$pkgver.tar.gz"
|
||||||
|
"hyprland-protocols-$_protocols_commit.tar.gz::https://github.com/hyprwm/hyprland-protocols/archive/$_protocols_commit.tar.gz")
|
||||||
|
sha256sums=('dfbd6773884c24bb300d756420cc540dda0c3518e910e20d1538e7dd6c0990da'
|
||||||
|
'SKIP')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$pkgname-$pkgver"
|
cd "$pkgname-$pkgver"
|
||||||
|
|
||||||
|
# Link the hyprland-protocols submodule
|
||||||
|
rmdir lib/hyprland-protocols 2>/dev/null || true
|
||||||
|
ln -sf "$srcdir/hyprland-protocols-$_protocols_commit" lib/hyprland-protocols
|
||||||
|
|
||||||
|
# Replace build.rs with a simple version that doesn't require git
|
||||||
|
cat > build.rs << 'EOF'
|
||||||
|
fn main() {
|
||||||
|
println!("cargo::rustc-env=GIT_VERSION=v0.2.1-r0-release");
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
export RUSTUP_TOOLCHAIN=nightly
|
export RUSTUP_TOOLCHAIN=nightly
|
||||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user