2024-07-24 16:11:02 +10:00
|
|
|
# Maintainer: Alex Janka <alex@alexjanka.com>
|
|
|
|
|
|
|
|
pkgname=sway-flash-indicator
|
2024-07-29 12:01:42 +10:00
|
|
|
pkgver=0.3.0
|
2024-07-24 16:11:02 +10:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2024-07-25 15:35:50 +10:00
|
|
|
pkgver() {
|
|
|
|
cargo metadata --format-version=1 |
|
|
|
|
jq -r '.packages[] | select(.name == "sway-flash-indicator") | .version'
|
|
|
|
}
|
|
|
|
|
2024-07-24 16:11:02 +10:00
|
|
|
package() {
|
|
|
|
cd "sway-flash-indicator"
|
|
|
|
|
|
|
|
install -Dm755 "target/release/sway-flash-indicator" "$pkgdir/usr/bin/sway-flash-indicator"
|
|
|
|
}
|