# Maintainer: Elijah Gregg pkgname=halmak-git pkgver=2.1.0.r20.g3647682 pkgrel=1 pkgdesc="The final version of the AI designed keyboard layout" arch=("x86_64") url="https://github.com/MadRabbit/halmak" license=("MIT") depends=("libxkbcommon") provides=("halmak") conflicts=("halmak") source=("git+https://github.com/MadRabbit/halmak.git") md5sums=('SKIP') pkgver() { cd "$srcdir/halmak" _tag=$(git tag --sort=v:refname | tail -n1) printf '%s.r%s.g%s' "${_tag#v}" "$(git rev-list "$_tag"..HEAD --count)" "$(git rev-parse --short HEAD)" } package() { cd "$srcdir/halmak" mkdir -p "${pkgdir}/usr/share/X11/xkb" cp -R "linux/symbols" "${pkgdir}/usr/share/X11/xkb" rm "${pkgdir}/usr/share/X11/xkb/symbols/halmak" mv "${pkgdir}/usr/share/X11/xkb/symbols/halmak_no_qwerty" "${pkgdir}/usr/share/X11/xkb/symbols/halmak" }