Remove -git

This commit is contained in:
Ryan Hughes committed 2025-12-13 16:49:48 -05:00
1 parent 4c5fb42171
commit 5ade28936a
1 file changed
+7 -15
@@ -0,0 +1,43 @@
# Maintainer: wysbd <aur@wysbd.dev>
pkgname="hyprland-preview-share-picker"
pkgver=0.2.1
pkgrel=1
pkgdesc="An alternative share picker for hyprland with window and monitor previews"
arch=(x86_64)
url="https://github.com/WhySoBad/hyprland-preview-share-picker"
license=(MIT)
depends=('gtk4' 'gtk4-layer-shell' 'xdg-desktop-portal-hyprland' 'hyprland')
makedepends=(cargo)
optdepends=(
'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")
sha256sums=('bef140a1a96994029153dca8c00b1750b9a5a764fb9db2dc68d7bb40e8a29e8a')
prepare() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=nightly
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=nightly
export CARGO_TARGET_DIR=target
cargo build --frozen --release
./target/release/hyprland-preview-share-picker schema > schema.json
}
package() {
cd "$pkgname-$pkgver"
install -Dm0755 -T "target/release/hyprland-preview-share-picker" "$pkgdir/usr/bin/hyprland-preview-share-picker"
install -dm0755 "$pkgdir/usr/share/hyprland-preview-share-picker"
install -Dm0644 "schema.json" "$pkgdir/usr/share/hyprland-preview-share-picker"
}