summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..07e851c128c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: FadeMind <fademind@gmail.com>
+
+_pkgname=asus-nb-wmi-reload
+pkgname=asus-nb-wmi-reload-git
+pkgver=20160121
+pkgrel=1
+pkgdesc="A systemd service for reload ASUS NB WMI Driver after resume"
+arch=('any')
+url="https://github.com/FadeMind/${_pkgname}"
+license=('GPL2')
+depends=('bash' 'kmod' 'sudo' 'systemd')
+makedepends=('git')
+source=("${_pkgname}::git+${url}.git")
+sha256sums=('SKIP')
+install=("${_pkgname}.install")
+
+pkgver() {
+ cd ${srcdir}/${_pkgname}
+ git log -1 --format="%cd" --date=short | tr -d '-'
+}
+
+package() {
+ install -Dm644 "${srcdir}/${_pkgname}/${_pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"
+ install -Dm755 "${srcdir}/${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
+}