-
Notifications
You must be signed in to change notification settings - Fork 1
/
PKGBUILD
32 lines (26 loc) · 1.1 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Donovan Glover <https://donovan.is/>
pkgname=hyprdim
pkgver=3.0.0
pkgrel=1
pkgdesc="Automatically dim windows in Hyprland when switching between them"
arch=('x86_64')
url="https://github.com/donovanglover/hyprdim"
license=('GPL3')
depends=('gcc-libs')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::https://github.com/donovanglover/$pkgname/archive/$pkgver.tar.gz")
sha256sums=('SKIP')
build() {
cd "$pkgname-$pkgver"
cargo build --release --locked
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "target/release/hyprdim" "$pkgdir/usr/bin/hyprdim"
install -Dm644 "target/completions/_hyprdim" "$pkgdir/usr/share/zsh/site-functions/_hyprdim"
install -Dm644 "target/completions/hyprdim.bash" "$pkgdir/usr/share/bash-completion/completions/hyprdim"
install -Dm644 "target/completions/hyprdim.fish" "$pkgdir/usr/share/fish/vendor_completions.d/hyprdim.fish"
install -Dm644 "target/man/hyprdim.1" "$pkgdir/usr/share/man/man1/hyprdim.1"
install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}