You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
841 B
33 lines
841 B
2 years ago
|
pkgname='swhkd-git'
|
||
|
_pkgname="swhkd"
|
||
|
pkgver=1.0.0.254.g106bef2
|
||
|
pkgrel=1
|
||
|
arch=('x86_64')
|
||
|
url="https://github.com/waycrate/swhkd"
|
||
|
pkgdesc="A display server independent hotkey daemon inspired by sxhkd."
|
||
|
license=('BSD')
|
||
|
depends=('polkit')
|
||
|
makedepends=('rustup' 'make' 'git')
|
||
|
conflicts=('swhkd-musl-git')
|
||
|
provides=('swhkd')
|
||
|
source=("$_pkgname::git+https://github.com/waycrate/$_pkgname")
|
||
|
sha256sums=('SKIP')
|
||
|
|
||
|
build(){
|
||
|
cd "$_pkgname"
|
||
|
make setup
|
||
|
make glibc
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$_pkgname"
|
||
|
install -Dm 755 ./bin/swhkd "$pkgdir/usr/local/bin/swhkd"
|
||
|
install -Dm 755 ./bin/swhks "$pkgdir/usr/local/bin/swhks"
|
||
|
install -Dm 750 ./swhkd.rules "$pkgdir/etc/polkit-1/rules.d/swhkd.rules"
|
||
|
}
|
||
|
|
||
|
pkgver() {
|
||
|
cd $_pkgname
|
||
|
echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
|
||
|
}
|