# Original maintainer: Andreas Radke # Original maintainer: Jan de Groot # # This is a modified version of xkeyboard-config to provide emulation for ducky # mini fn key layout that I got used to very much # # they don't make those keyboards any more :( _pkgname=xkeyboard-config pkgname=xkeyboard-config-ducky pkgver=2.26 pkgrel=2 pkgdesc="X keyboard configuration files" arch=(any) license=('custom') url="https://www.freedesktop.org/wiki/Software/XKeyboardConfig" makedepends=('intltool' 'xorg-xkbcomp' 'libxslt') provides=('xkbdata' "${_pkgname}") replaces=('xkbdata' "${_pkgname}") conflicts=('xkbdata' "${_pkgname}") source=(https://xorg.freedesktop.org/archive/individual/data/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2 pt-layout.patch ducky_mini ru.patch us.patch) sha512sums=('5c8a31f7a6ad5daed8a3fceb56230b2e2fc04a25f52a43b3b4ea81e4a6ab15c52869f749c4b747d855cd4b618c04bcbb40e85dec7eab31fbe3bd45e8c9b755ef' '98c8b47e9a36ba3f130454fdd68c508f54b78eb65ddb071ca85bdcc3b324699e51155e3fc425ccae98350bb6430fea4771c0338024c1e06063a54b879bb707db' '2f3561852475959e884a09662e248155d642e1e3ae3996020333dee0709907917f05a43f4351dffde898fd0a10954078fe998763a4df0a35167afaafa9abf600' '854c52d168837a5c72559498d10dff7843275323c4082d1c741c832d068108be3a51e823c98a27ea47c5fe4f335499fdbcaa3698117740ef24c07c41161ad59b' '7d9c692980c77a3b0658a5dd707ecdcd1e3fe47c2958f539f1f81dd04d5f204f779569d6b880c3f12872397d6171b2ec2caab9a4e79461c9f5828ca1c45acb08') build() { cd ${_pkgname}-${pkgver} cp -v ${srcdir}/ducky_mini symbols patch -p1 < ${srcdir}/ru.patch patch -p1 < ${srcdir}/us.patch ./configure --prefix=/usr \ --with-xkb-base=/usr/share/X11/xkb \ --with-xkb-rules-symlink=xorg \ --enable-compat-rules=yes make } package() { cd ${_pkgname}-${pkgver} make DESTDIR="${pkgdir}" install rm -f "${pkgdir}/usr/share/X11/xkb/compiled" install -m755 -d "${pkgdir}/var/lib/xkb" install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" }