summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbilabila2019-04-17 14:44:26 +0800
committerbilabila2019-04-17 14:44:26 +0800
commitfcd0177ca476a3be451a917a7f4852ac993e8279 (patch)
treeda6f9332a97396c2b7cf741481f86b557cceebbc
parentcc2bbce0f29f973038d2a8dcac1f7729bd0922ba (diff)
downloadaur-libinput-multiplier.tar.gz
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--multiplier.patch6
3 files changed, 8 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e53612f3d7a..44deb360871 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = libinput-multiplier
pkgdesc = scroll patch, discrete deltay multiplier
pkgver = 1.13.1
- pkgrel = 1
+ pkgrel = 2
url = http://freedesktop.org/wiki/Software/libinput
arch = x86_64
license = custom
@@ -19,7 +19,7 @@ pkgbase = libinput-multiplier
source = https://freedesktop.org/software/libinput/libinput-1.13.1.tar.xz
source = multiplier.patch
sha512sums = a19deec802e704038df0901c103a82a3370f56e0299f4cc1b6aa84c1832a66fb638e6f9d0fa708b51df6c3b939cdc1271e4ff547c645c566be03dce0bc9ff7e0
- sha512sums = c47b99a7d415f0560854d86aa445473bc6485a41a7062e9c12996d0b7bad146ea674e3488da620eefc9f3cc705be07c213b1b37a6df2ad0b215b3a3d617daa0d
+ sha512sums = bf31c78c40b568f3a4de029c596c2cee05b6d9dd0ee174259aac34dd87ea84a858ef5fd2ffdd753075da54a310480a9e1ed511cc49ca5edec6769b517bff41f9
pkgname = libinput-multiplier
diff --git a/PKGBUILD b/PKGBUILD
index 82dfbb0e733..f783b50d8ab 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@ _pkgname=libinput
_patch=multiplier.patch
pkgname=$_pkgname-multiplier
pkgver=1.13.1
-pkgrel=1
+pkgrel=2
pkgdesc='scroll patch, discrete deltay multiplier'
arch=(x86_64)
url=http://freedesktop.org/wiki/Software/libinput
@@ -18,7 +18,7 @@ optdepends=('gtk3: libinput debug-gui'
source=(https://freedesktop.org/software/$_pkgname/$_pkgname-$pkgver.tar.xz
$_patch)
sha512sums=(a19deec802e704038df0901c103a82a3370f56e0299f4cc1b6aa84c1832a66fb638e6f9d0fa708b51df6c3b939cdc1271e4ff547c645c566be03dce0bc9ff7e0
- d87fb912203c0c10f55b452b4cbb29abf86dbcb92a394029dc285fa53cba6b72446063cc3b3367b423cc5b5ff57526997272f321ea5b07a93a4532c1a9fea635)
+ bf31c78c40b568f3a4de029c596c2cee05b6d9dd0ee174259aac34dd87ea84a858ef5fd2ffdd753075da54a310480a9e1ed511cc49ca5edec6769b517bff41f9)
prepare() {
cd "${srcdir}"/$_pkgname-$pkgver
patch -Np1 -i ../$_patch
diff --git a/multiplier.patch b/multiplier.patch
index 83fb9dd325c..8f4b315f0f2 100644
--- a/multiplier.patch
+++ b/multiplier.patch
@@ -14,16 +14,17 @@ diff --git a/src/libinput.c b/src/libinput.c
index 01f53974..2ee9e1dc 100644
--- a/src/libinput.c
+++ b/src/libinput.c
-@@ -33,6 +33,8 @@
+@@ -33,6 +33,9 @@
#include <sys/epoll.h>
#include <unistd.h>
#include <assert.h>
+#include <fcntl.h>
+#include <sys/mman.h>
++#include <sys/stat.h>
#include "libinput.h"
#include "libinput-private.h"
-@@ -720,6 +722,15 @@ libinput_event_pointer_get_axis_value(struct libinput_event_pointer *event,
+@@ -720,6 +722,16 @@ libinput_event_pointer_get_axis_value(struct libinput_event_pointer *event,
return value;
}
@@ -32,6 +33,7 @@ index 01f53974..2ee9e1dc 100644
+ int fd;
+ char *file = "/tmp/libinput_discrete_deltay_multiplier";
+ if ((fd = open(file, O_RDWR | O_CREAT, 0666)) == -1) return;
++ fchmod(fd,S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
+ if (write(fd, "1", sizeof(char)) == -1) return;
+ multiplier = mmap(NULL, 1024, PROT_READ, MAP_SHARED, fd, 0);
+}