sway-flash-indicator/packaging/PKGBUILD
2024-08-27 11:51:56 +10:00

30 lines
737 B
Bash

# Maintainer: Alex Janka <alex@alexjanka.com>
pkgname=sway-flash-indicator
pkgver=0.4.3
pkgrel=1
pkgdesc="flashes sway indicator border rather than always showing it"
arch=('x86_64' 'aarch64')
url="https://git.alexjanka.com/alex/sway-flash-indicator"
license=('custom')
makedepends=('cargo')
source=("sway-flash-indicator::git+https://git.alexjanka.com/alex/sway-flash-indicator")
sha512sums=('SKIP')
build() {
cd "sway-flash-indicator"
cargo build --release --locked
}
pkgver() {
cargo metadata --format-version=1 |
jq -r '.packages[] | select(.name == "sway-flash-indicator") | .version'
}
package() {
cd "sway-flash-indicator"
install -Dm755 "target/release/sway-flash-indicator" "$pkgdir/usr/bin/sway-flash-indicator"
}