57 lines
2.4 KiB
Bash
57 lines
2.4 KiB
Bash
# Original maintainer: Andreas Radke <andyrtr@archlinux.org>
|
|
# Original maintainer: Jan de Groot <jgc@archlinux.org>
|
|
#
|
|
# 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.32
|
|
pkgrel=1
|
|
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
|
|
ducky_mini
|
|
ru.patch
|
|
us.patch
|
|
base.xml.patch
|
|
evdev.xml.patch)
|
|
sha512sums=('c082a86efcf69ab50454875686b9b4c388cf48002de3728331de3c09c1349a38c9b9ad8ecace2215061c0c775e59c3dd230fffe3f24db63790aa71dc8eff8dea'
|
|
'cff98ba768a9fcb1f811c43978aa6e971f4582722994450581a83051f5c023ea5abf57bdf6f3fa9f95e905b89d83764694e3867886ffb3251d3e47d6b55d1dc7'
|
|
'854c52d168837a5c72559498d10dff7843275323c4082d1c741c832d068108be3a51e823c98a27ea47c5fe4f335499fdbcaa3698117740ef24c07c41161ad59b'
|
|
'7d9c692980c77a3b0658a5dd707ecdcd1e3fe47c2958f539f1f81dd04d5f204f779569d6b880c3f12872397d6171b2ec2caab9a4e79461c9f5828ca1c45acb08'
|
|
'fc7e4bce201538c828e44136ae2d3c39c4066a6d56413b229ad453eadd1d459aae22f218dde6f0e1afbddf3ebf995e6f8f56fd6406eff4ef6fa196207da9adb7'
|
|
'1ba6fe7aa471158b811fcb6a8efed29fb0c3685aaa373e106dc8c6b8c8e84503707ea1b71b19806351d7cae77691362f504738416ac2bfbcf7e904ff8d348247')
|
|
|
|
build() {
|
|
cd ${_pkgname}-${pkgver}
|
|
patch -p1 < ${srcdir}/ru.patch
|
|
patch -p1 < ${srcdir}/us.patch
|
|
patch -p1 < ${srcdir}/base.xml.patch
|
|
patch -p1 < ${srcdir}/evdev.xml.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 -m644 "${srcdir}/ducky_mini" "${pkgdir}/usr/share/X11/xkb/symbols"
|
|
install -m755 -d "${pkgdir}/var/lib/xkb"
|
|
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
|
|
}
|