summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFadeMind2016-05-28 09:05:12 +0200
committerFadeMind2016-05-28 09:05:12 +0200
commit49839cfac40f8771f867b53a2ec65c1d7d145558 (patch)
tree053d913e01ed822da0aeec5cdebe8b5ebbf631ed
parentc1868f321115258f45110a8588fd7068264ebb38 (diff)
downloadaur-49839cfac40f8771f867b53a2ec65c1d7d145558.tar.gz
update
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD16
-rw-r--r--asus-nb-wmi-reload.install27
3 files changed, 16 insertions, 32 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7ca65852961..34a65ef33c2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,15 @@
# Generated by mksrcinfo v8
-# Sat Mar 12 09:11:11 UTC 2016
+# Sat May 28 07:05:12 UTC 2016
pkgbase = asus-nb-wmi-reload-git
pkgdesc = Systemd service for reload Asus Notebooks WMI Hotkey Driver after resume for restoring light on WLAN LED
- pkgver = 20160312
+ pkgver = 20160528
pkgrel = 1
url = https://github.com/FadeMind/asus-nb-wmi-reload
install = asus-nb-wmi-reload.install
arch = any
license = GPL2
makedepends = git
+ makedepends = make
depends = bash
depends = kmod
depends = systemd
diff --git a/PKGBUILD b/PKGBUILD
index 09c9d505c79..aa94025d27a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,26 @@
# Maintainer: FadeMind <fademind@gmail.com>
pkgname=asus-nb-wmi-reload-git
-pkgver=20160312
+pkgver=20160528
pkgrel=1
pkgdesc="Systemd service for reload Asus Notebooks WMI Hotkey Driver after resume for restoring light on WLAN LED"
arch=('any')
-url="https://github.com/FadeMind/${pkgname/-git/}"
+url="https://github.com/FadeMind/${pkgname%-git}"
license=('GPL2')
depends=('bash'
'kmod'
'systemd')
-makedepends=('git')
-source=("${pkgname/-git/}::git+${url}.git")
+makedepends=('git' 'make')
+source=("${pkgname%-git}::git+${url}.git")
sha256sums=('SKIP')
-install="${pkgname/-git/}.install"
+install="${pkgname%-git}.install"
pkgver() {
- cd ${pkgname/-git/}
+ cd ${pkgname%-git}
git log -1 --format="%cd" --date=short | tr -d '-'
}
package() {
- install -Dm644 "${pkgname/-git/}/${pkgname/-git/}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname/-git/}.service"
- install -Dm755 "${pkgname/-git/}/${pkgname/-git/}" "${pkgdir}/usr/bin/${pkgname/-git/}"
+ cd ${pkgname%-git}
+ make install DESTDIR="$pkgdir"
}
diff --git a/asus-nb-wmi-reload.install b/asus-nb-wmi-reload.install
index c8d86b52a57..bde44517427 100644
--- a/asus-nb-wmi-reload.install
+++ b/asus-nb-wmi-reload.install
@@ -1,27 +1,10 @@
-asus-nb-wmi-reload_enable() {
- systemctl is-enabled asus-nb-wmi-reload.service &> /dev/null
- if [ $? -eq 0 ]; then
- echo 'Service asus-nb-wmi-reload is enabled already.'
- else
- echo 'Enabling asus-nb-wmi-reload service...'
- systemctl enable asus-nb-wmi-reload.service &> /dev/null
- fi
-}
-
post_install() {
- asus-nb-wmi-reload_enable
+ printf "NOTE: You need manually enable the systemd service after install via command:\n"
+ printf "sudo systemctl enable asus-nb-wmi-reload\n"
}
-post_upgrade() {
- asus-nb-wmi-reload_enable
- echo 'Reloading systemd...'
- systemctl daemon-reload
-}
-pre_remove() {
- systemctl is-enabled asus-nb-wmi-reload.service &> /dev/null
- if [ $? -eq 0 ]; then
- systemctl disable asus-nb-wmi-reload.service &> /dev/null
- echo 'Disabling asus-nb-wmi-reload service...'
- fi
+post_remove() {
+ printf "NOTE: You need manually disable the systemd service after remove via command:\n"
+ printf "sudo systemctl disable asus-nb-wmi-reload\n"
}