summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordszryan2019-09-22 17:52:52 +1000
committerdszryan2019-09-22 17:52:52 +1000
commite082938b31bb1bf3e38e3612eb138eaa262b5a7c (patch)
treec6ea5afa10ba66efdb93db5864d51983049f0796
downloadaur-e082938b31bb1bf3e38e3612eb138eaa262b5a7c.tar.gz
initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore5
-rw-r--r--INSTALL7
-rw-r--r--PKGBUILD20
4 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e9a87e74c68
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = wayland-mouse-mapper
+ pkgdesc = Maps mouse buttons to keys in wayland, configured to swap workspaces under gnome
+ pkgver = 0.1
+ pkgrel = 1
+ url = https://github.com/dszryan/wayland-mouse-mapper
+ install = INSTALL
+ arch = any
+ license = GPL
+ makedepends = git
+ depends = libinput>=1.14.1
+ depends = evemu>=2.7.0
+ source = wayland-mouse-mapper-0.1::git+https://github.com/dszryan/wayland-mouse-mapper.git
+ md5sums = SKIP
+
+pkgname = wayland-mouse-mapper
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..756cf57d988
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/*.tar.xz
+/*.tar.gz
+/pkg
+/src
+/wayland-mouse-mapper
diff --git a/INSTALL b/INSTALL
new file mode 100644
index 00000000000..81f3f0b974a
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,7 @@
+post_install() {
+ systemctl daemon-reload && systemctl enable -f --now mousemapper.service
+}
+
+pre_remove() {
+ systemctl daemon-reload && systemctl disable -f --now mousemapper.service
+}
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..11b9706d2c3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,20 @@
+# Maintainer: dszryan <9117127+dszryan@users.noreply.github.com>
+pkgver=0.1
+pkgname=wayland-mouse-mapper
+pkgrel=1
+pkgdesc="Maps mouse buttons to keys in wayland, configured to swap workspaces under gnome"
+url="https://github.com/dszryan/$pkgname"
+arch=('any')
+license=('GPL')
+makedepends=('git')
+depends=('libinput>=1.14.1' 'evemu>=2.7.0')
+source=("${pkgname}-${pkgver}::git+https://github.com/dszryan/$pkgname.git")
+md5sums=('SKIP')
+install="INSTALL"
+
+package() {
+
+ install -D -t "$pkgdir/usr/bin" "$srcdir/$pkgname-$pkgver/mousemapper.sh"
+ install -D -t "$pkgdir/usr/lib/systemd/system" "$srcdir/$pkgname-$pkgver/mousemapper.service"
+
+}