summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD36
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..53889f2efa4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = tslib-git
+ pkgdesc = C library for filtering touchscreen events
+ pkgver = 1.13.r0.g50196cb
+ pkgrel = 1
+ url = http://www.tslib.org/
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = git
+ depends = glibc
+ provides = tslib
+ conflicts = tslib
+ source = git+https://github.com/kergoth/tslib.git
+ sha256sums = SKIP
+
+pkgname = tslib-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3e28cfcd133
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=tslib-git
+pkgver=1.13.r0.g50196cb
+pkgrel=1
+pkgdesc="C library for filtering touchscreen events"
+arch=('i686' 'x86_64')
+url="http://www.tslib.org/"
+license=('LGPL')
+depends=('glibc')
+makedepends=('git')
+provides=('tslib')
+conflicts=('tslib')
+source=("git+https://github.com/kergoth/tslib.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "tslib"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "tslib"
+
+ ./autogen.sh
+ ./configure --prefix="/usr" --sysconfdir="/etc"
+ make
+}
+
+package() {
+ cd "tslib"
+
+ make DESTDIR="$pkgdir" install
+}