[update] switch prefix dir to comply with AUR.

main
Shinyzenith 2 years ago
parent 1407b5c0f4
commit 042e4ff9fc
No known key found for this signature in database
GPG Key ID: A3DFCDC66E9E2950

@ -3,7 +3,7 @@ SERVER_BINARY := swhks
BUILDFLAGS := --release BUILDFLAGS := --release
POLKIT_DIR := /etc/polkit-1/rules.d POLKIT_DIR := /etc/polkit-1/rules.d
POLKIT_RULE := swhkd.rules POLKIT_RULE := swhkd.rules
TARGET_DIR := /usr/local/bin TARGET_DIR := /usr/bin
all: build all: build

@ -1,6 +1,7 @@
# Maintainer: Aakash Sharma <aakashsensharma@gmail.com>
pkgname='swhkd-git' pkgname='swhkd-git'
_pkgname="swhkd" _pkgname="swhkd"
pkgver=1.0.0.254.g106bef2 pkgver=1.0.0.255.g1407b5c
pkgrel=1 pkgrel=1
arch=('x86_64') arch=('x86_64')
url="https://github.com/waycrate/swhkd" url="https://github.com/waycrate/swhkd"
@ -9,7 +10,6 @@ license=('BSD')
depends=('polkit') depends=('polkit')
makedepends=('rustup' 'make' 'git') makedepends=('rustup' 'make' 'git')
conflicts=('swhkd-musl-git') conflicts=('swhkd-musl-git')
provides=('swhkd')
source=("$_pkgname::git+https://github.com/waycrate/$_pkgname") source=("$_pkgname::git+https://github.com/waycrate/$_pkgname")
sha256sums=('SKIP') sha256sums=('SKIP')
@ -21,8 +21,8 @@ build(){
package() { package() {
cd "$_pkgname" cd "$_pkgname"
install -Dm 755 ./bin/swhkd "$pkgdir/usr/local/bin/swhkd" install -Dm 755 ./bin/swhkd "$pkgdir/usr/bin/swhkd"
install -Dm 755 ./bin/swhks "$pkgdir/usr/local/bin/swhks" install -Dm 755 ./bin/swhks "$pkgdir/usr/bin/swhks"
install -Dm 750 ./swhkd.rules "$pkgdir/etc/polkit-1/rules.d/swhkd.rules" install -Dm 750 ./swhkd.rules "$pkgdir/etc/polkit-1/rules.d/swhkd.rules"
} }

@ -1,3 +1,4 @@
# Maintainer: Aakash Sharma <aakashsensharma@gmail.com>
pkgname='swhkd-musl-git' pkgname='swhkd-musl-git'
_pkgname="swhkd" _pkgname="swhkd"
pkgver=1 pkgver=1
@ -9,7 +10,6 @@ license=('BSD')
conflicts=('swhkd-glib-git') conflicts=('swhkd-glib-git')
depends=('polkit') depends=('polkit')
makedepends=('rustup' 'make' 'git') makedepends=('rustup' 'make' 'git')
provides=('swhkd')
source=("$_pkgname::git+https://github.com/waycrate/$_pkgname") source=("$_pkgname::git+https://github.com/waycrate/$_pkgname")
sha256sums=('SKIP') sha256sums=('SKIP')
@ -21,8 +21,8 @@ build(){
package() { package() {
cd "$_pkgname" cd "$_pkgname"
install -Dm 755 ./bin/swhkd "$pkgdir/usr/local/bin/swhkd" install -Dm 755 ./bin/swhkd "$pkgdir/usr/bin/swhkd"
install -Dm 755 ./bin/swhks "$pkgdir/usr/local/bin/swhks" install -Dm 755 ./bin/swhks "$pkgdir/usr/bin/swhks"
install -Dm 750 ./swhkd.rules "$pkgdir/etc/polkit-1/rules.d/swhkd.rules" install -Dm 750 ./swhkd.rules "$pkgdir/etc/polkit-1/rules.d/swhkd.rules"
} }

@ -1,5 +1,5 @@
polkit.addRule(function(action, subject) { polkit.addRule(function(action, subject) {
if (action.lookup("program") == "/usr/local/bin/swhkd") { if (action.lookup("program") == "/usr/bin/swhkd") {
return polkit.Result.YES; return polkit.Result.YES;
} }
}) })

Loading…
Cancel
Save