-
Notifications
You must be signed in to change notification settings - Fork 3
/
PKGBUILD
32 lines (26 loc) · 1.09 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=hyprnome
pkgver=0.3.1
pkgrel=1
pkgdesc="GNOME-like workspace switching in Hyprland"
arch=('x86_64')
url="https://github.com/donovanglover/hyprnome"
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/hyprnome" "$pkgdir/usr/bin/hyprnome"
install -Dm644 "target/completions/_hyprnome" "$pkgdir/usr/share/zsh/site-functions/_hyprnome"
install -Dm644 "target/completions/hyprnome.bash" "$pkgdir/usr/share/bash-completion/completions/hyprnome"
install -Dm644 "target/completions/hyprnome.fish" "$pkgdir/usr/share/fish/vendor_completions.d/hyprnome.fish"
install -Dm644 "target/man/hyprnome.1" "$pkgdir/usr/share/man/man1/hyprnome.1"
install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}