summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBart De Vries2016-03-22 14:41:33 +0100
committerBart De Vries2016-03-22 14:41:33 +0100
commit850c6f27c96b300871173c31f9a65ebbcdadc8db (patch)
treeb204bd77f0cc90a980ea12b451e846d646508d01 /PKGBUILD
downloadaur-twofing-git.tar.gz
Initial commit of twofing-git package.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD42
1 files changed, 42 insertions, 0 deletions
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"
+}