summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD42
-rw-r--r--twofing-git.install11
3 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b5cc5e4f294
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Tue Mar 22 13:37:58 UTC 2016
+pkgbase = twofing-git
+ pkgdesc = Touchscreen two-finger gestures daemon
+ pkgver = r15.c647c32
+ pkgrel = 1
+ url = http://plippo.de/p/twofing
+ install = twofing-git.install
+ arch = i686
+ arch = x86_64
+ arch = armv6h
+ arch = armv7h
+ license = MIT
+ makedepends = git
+ depends = libxrandr
+ depends = libxtst
+ source = twofing::git+https://github.com/Plippo/twofing.git#branch=master
+ md5sums = SKIP
+
+pkgname = twofing-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3fedaa8257a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Bart De Vries <devriesb@gmail.com>
+pkgname=twofing-git
+pkgver=r15.c647c32
+pkgrel=1
+pkgdesc="Touchscreen two-finger gestures daemon"
+arch=('i686' 'x86_64' 'armv6h' 'armv7h')
+url="http://plippo.de/p/twofing"
+license=('MIT')
+groups=()
+depends=(libxrandr libxtst)
+makedepends=('git')
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=twofing-git.install
+source=('twofing::git+https://github.com/Plippo/twofing.git#branch=master')
+noextract=()
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/${pkgname%-git}"
+ sed -n '/Copyright/,/ SOFTWARE./p' twofingemu.c > LICENSE
+ #patch -p1 -i "$srcdir/${pkgname%-git}.patch"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ make DESTDIR="$pkgdir/" install
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
diff --git a/twofing-git.install b/twofing-git.install
new file mode 100644
index 00000000000..b4d22545049
--- /dev/null
+++ b/twofing-git.install
@@ -0,0 +1,11 @@
+post_install() {
+ echo "The easiest way to start the two-finger daemon is by running:"
+ echo " twofing --wait /dev/input/xxx"
+ echo "where /dev/input/xxx refers to the multitouch input device."
+}
+
+post_upgrade() {
+ echo "The easiest way to start the two-finger daemon is by running:"
+ echo " twofing --wait /dev/input/xxx"
+ echo "where /dev/input/xxx refers to the multitouch input device."
+}