parent
106bef257c
commit
1407b5c0f4
@ -0,0 +1,32 @@
|
||||
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)"
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
pkgname='swhkd-musl-git'
|
||||
_pkgname="swhkd"
|
||||
pkgver=1
|
||||
pkgrel=1
|
||||
arch=('x86_64')
|
||||
url="https://github.com/waycrate/swhkd"
|
||||
pkgdesc="A display server independent hotkey daemon inspired by sxhkd."
|
||||
license=('BSD')
|
||||
conflicts=('swhkd-glib-git')
|
||||
depends=('polkit')
|
||||
makedepends=('rustup' 'make' 'git')
|
||||
provides=('swhkd')
|
||||
source=("$_pkgname::git+https://github.com/waycrate/$_pkgname")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
build(){
|
||||
cd "$_pkgname"
|
||||
make setup
|
||||
make
|
||||
}
|
||||
|
||||
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)"
|
||||
}
|
Loading…
Reference in new issue