summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGerman Lashevich2019-12-16 01:37:13 +0100
committerGerman Lashevich2019-12-16 01:37:13 +0100
commit1f3b3754e355cfad73aac398d24ef015ebd1f57a (patch)
tree6e62485c27bc8f1c273647dc30a35eebd48f0975 /PKGBUILD
downloadaur-1f3b3754e355cfad73aac398d24ef015ebd1f57a.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
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
+}