summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO24
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD35
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8c0cb720a2d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = xkb-switch-i3
+ pkgdesc = Program that allows to query and change the XKB layout state (with i3wm auto-switch mode)
+ pkgver = 1.6.1
+ pkgrel = 1
+ url = https://github.com/zebradil/xkb-switch-i3
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ makedepends = cmake
+ depends = libx11
+ depends = libxkbfile
+ depends = i3-wm
+ depends = libsigc++
+ depends = jsoncpp
+ provides = xkb-switch
+ conflicts = xkb-switch
+ source = xkb-switch-i3-1.6.1.tar.gz::https://github.com/zebradil/xkb-switch-i3/archive/1.6.1.tar.gz
+ source = i3ipcpp-0.5.tar.gz::https://github.com/drmgc/i3ipcpp/archive/v0.5.tar.gz
+ sha1sums = eb33343dcb52757240539bd72ef053611c5e5b3c
+ sha1sums = 4022aa1c0c14519c3c5f9b7e82d82fa503b4959c
+
+pkgname = xkb-switch-i3
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f71c635dafd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!PKGBUILD
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..66313de6999
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: German Lashevich <german.lashevich@gmail.com>
+# Contributor: Orestis Floros <orestisf1993@gmail.com>
+# Contributor: Doron Behar <doron.behar@gmail.com>
+
+_i3ipcpp_ver=0.5
+
+pkgname=xkb-switch-i3
+pkgver=1.6.1
+pkgrel=1
+pkgdesc='Program that allows to query and change the XKB layout state (with i3wm auto-switch mode)'
+conflicts=('xkb-switch')
+provides=('xkb-switch')
+arch=('i686' 'x86_64')
+url='https://github.com/zebradil/xkb-switch-i3'
+license=('GPL3')
+depends=('libx11' 'libxkbfile' 'i3-wm' 'libsigc++' 'jsoncpp')
+makedepends=('git' 'cmake')
+source=(
+ "${pkgname}-${pkgver}.tar.gz::https://github.com/zebradil/${pkgname}/archive/${pkgver}.tar.gz"
+ "i3ipcpp-${_i3ipcpp_ver}.tar.gz::https://github.com/drmgc/i3ipcpp/archive/v${_i3ipcpp_ver}.tar.gz"
+)
+sha1sums=('eb33343dcb52757240539bd72ef053611c5e5b3c'
+ '4022aa1c0c14519c3c5f9b7e82d82fa503b4959c')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ mv -T "${srcdir}/i3ipcpp-${_i3ipcpp_ver}" ./i3ipc++
+ cmake -DCMAKE_INSTALL_PREFIX=/usr .
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="$pkgdir/" install
+}