diff options
author | Josip Janžić | 2015-09-10 14:33:03 +0200 |
---|---|---|
committer | Josip Janžić | 2015-09-10 14:33:03 +0200 |
commit | 3940c991ba39a42cbf46a0ac1b336e8694d12687 (patch) | |
tree | 902ac4ebf0ff72f2855f6aec1d4508fb34625209 | |
download | aur-touchpad-state-git.tar.gz |
0.89.1
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..00bfb535f3be --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = touchpad-state-git + pkgdesc = Set touchpad state; includes udev on-mouse rule. + pkgver = 0.89.1 + pkgrel = 1 + url = https://github.com/Gen2ly/touchpad-state/ + arch = any + license = GPL2 + makedepends = git + depends = xf86-input-synaptics + source = git://github.com/Gen2ly/touchpad-state + md5sums = SKIP + +pkgname = touchpad-state-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7ba9aeaaad21 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +pkgname=touchpad-state-git +_pkgname=${pkgname%-*} +pkgver=0.89.1 +pkgrel=1 +pkgdesc="Set touchpad state; includes udev on-mouse rule." +arch=("any") +url="https://github.com/Gen2ly/"$_pkgname"/" +license=("GPL2") +depends=("xf86-input-synaptics") +makedepends=("git") +conflicts=("") +install= +source=("git://github.com/Gen2ly/"$_pkgname"") +md5sums=('SKIP') + +pkgver() { + cd $srcdir/$_pkgname + git describe --long | sed -r 's/-([0-9,a-g,A-G]{7}.*)//' | sed 's/-/./' +} + +package() { + cd $srcdir/$_pkgname + install -Dm755 $_pkgname "$pkgdir"/usr/bin/$_pkgname + install -Dm644 01-"$_pkgname"-onmouse.rules \ + "$pkgdir"/usr/lib/udev/rules.d/01-"$_pkgname"-onmouse.rules + install -Dm644 license.txt \ + "$pkgdir"/usr/share/licenses/$_pkgname/license.txt +} + +# vim:set ts=2 sw=2 et: |