summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorNeoTheFox2016-03-14 11:55:42 +0100
committerNeoTheFox2016-03-14 11:55:42 +0100
commit8bc2984f0250b3a3ad914e04f9233a7ad313b48e (patch)
tree2873a38f031e1a89bb8ae67d42e581c0c72da582 /PKGBUILD
downloadaur-8bc2984f0250b3a3ad914e04f9233a7ad313b48e.tar.gz
Initial
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d878c02202f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Nickolay Mardanov <soniczerops@gmail.com>
+
+pkgname=xkblayout-state
+pkgver=20150804
+pkgrel=1
+pkgdesc="A small command-line program to get/set the current keyboard layout."
+arch=('i686' 'x86_64')
+license=('GPL')
+url="https://github.com/nonpop/xkblayout-state"
+provides=('xkblayout-state')
+conflicts=('xkblayout-state')
+depends=('libx11')
+makedepends=('git' 'gcc')
+source=('git+https://github.com/nonpop/xkblayout-state.git')
+md5sums=('SKIP')
+
+_gitname="xkblayout-state"
+_gitbranch="master"
+
+pkgver() {
+ cd "$_gitname"
+ git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
+}
+
+build() {
+ cd "$_gitname"
+ make
+}
+
+package() {
+ cd "$_gitname"
+ install -Dm755 "xkblayout-state" "$pkgdir/usr/bin/xkblayout-state"
+}