summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoetw2015-06-12 11:57:09 +0200
committerjoetw2015-06-12 11:57:09 +0200
commit94b8c5bb2f43685e4a88950eab13319293e661bb (patch)
tree3964676dc1a82f013af7307b31c9bd4f151dc072
downloadaur-94b8c5bb2f43685e4a88950eab13319293e661bb.tar.gz
Initial import
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD37
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..01f1d68884c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = xcape-git
+ pkgdesc = Use modifier pressed/released solo as another key/chord, e.g. CapsLock > Escape
+ pkgver = 1.1.r9.gf3802fc
+ pkgrel = 1
+ url = https://github.com/alols/xcape
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ depends = libxtst
+ provides = xcape
+ conflicts = xcape
+ source = git+https://github.com/alols/xcape
+ sha256sums = SKIP
+
+pkgname = xcape-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e5a675c91b1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: joetw <call dot imera42 at googlemail dot com>
+# Contributor: Greg Fitzgerald <greg at gregf dot org>
+
+pkgname=xcape-git
+pkgver=1.1.r9.gf3802fc
+pkgrel=1
+pkgdesc="Use modifier pressed/released solo as another key/chord, e.g. CapsLock > Escape"
+arch=('i686' 'x86_64')
+url="https://github.com/alols/xcape"
+license=('GPL3')
+depends=('libxtst')
+makedepends=('git')
+provides=('xcape')
+conflicts=('xcape')
+source=("git+${url}")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd xcape
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd xcape
+ make
+}
+
+package() {
+ cd xcape
+ make DESTDIR="$pkgdir/" MANDIR="/share/man/man1" install
+ install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm 644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
+
+ find "$pkgdir" -type d -name .git -exec rm -r '{}' +
+}
+
+# vim:set ft=PKGBUILD ts=2 sw=2 et: