diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 63 |
1 files changed, 26 insertions, 37 deletions
@@ -1,45 +1,34 @@ # Maintainer: German Lashevich <german.lashevich@gmail.com> # Contributor: Orestis Floros <orestisf1993@gmail.com> # Contributor: Doron Behar <doron.behar@gmail.com> - -_pkgname=xkb-switch-i3 - +# +# Source: https://github.com/zebradil/aur +# +# shellcheck disable=SC2034,SC2154 pkgname=xkb-switch-i3-git -pkgver=1.7.1.r0.g19d223f -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/${_pkgname}" -license=('GPL3') -depends=('libx11' 'libxkbfile' 'i3-wm' 'libsigc++' 'jsoncpp') -makedepends=('git' 'cmake') -source=( - "git+https://github.com/zebradil/${_pkgname}.git#branch=master" - "git+https://github.com/drmgc/i3ipcpp.git" -) -sha1sums=( - 'SKIP' - 'SKIP' -) - -pkgver() { - cd "${_pkgname}" - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' -} - -build() { - cd "${srcdir}/${_pkgname}" - git submodule init - git config "submodule.i3ipc++.url" "${srcdir}/i3ipcpp" - git submodule update - - cmake -DCMAKE_INSTALL_PREFIX=/usr . +pkgver=2.0.1+i3_5 +pkgrel=3 +pkgdesc="Program that allows to query and change the XKB layout state (with i3wm auto-switch mode)" +url="https://github.com/zebradil/xkb-switch-i3" +arch=(i686 x86_64) +license=(MIT) +depends=(i3-wm jsoncpp libsigc++ libx11 libxkbfile) +makedepends=(cmake git i3-wm libsigc++ libx11 libxkbfile) +conflicts=(xkb-switch xkb-switch-i3) +provides=(xkb-switch) +source=(git+https://github.com/zebradil/xkb-switch-i3.git#branch=master git+https://github.com/drmgc/i3ipcpp.git) +sha256sums=(SKIP SKIP) +build () +{ + cd "${srcdir}/${pkgname%-git}"; + git submodule init; + git config "submodule.i3ipc++.url" "${srcdir}/i3ipcpp"; + git -c protocol.file.allow=always submodule update; + cmake -DCMAKE_INSTALL_PREFIX=/usr .; make } - -package() { - cd "${srcdir}/${_pkgname}" +package () +{ + cd "${srcdir}/${pkgname%-git}"; make DESTDIR="$pkgdir/" install } |