2017-12-06 14:34:47 +02:00
|
|
|
# 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 :(
|
|
|
|
|
2017-12-06 15:17:42 +02:00
|
|
|
_pkgname=xkeyboard-config
|
|
|
|
pkgname=xkeyboard-config-ducky
|
2021-04-19 23:31:15 +03:00
|
|
|
pkgver=2.32
|
|
|
|
pkgrel=1
|
2017-12-06 14:34:47 +02:00
|
|
|
pkgdesc="X keyboard configuration files"
|
|
|
|
arch=(any)
|
|
|
|
license=('custom')
|
|
|
|
url="https://www.freedesktop.org/wiki/Software/XKeyboardConfig"
|
|
|
|
makedepends=('intltool' 'xorg-xkbcomp' 'libxslt')
|
2017-12-06 15:17:42 +02:00
|
|
|
provides=('xkbdata' "${_pkgname}")
|
|
|
|
replaces=('xkbdata' "${_pkgname}")
|
|
|
|
conflicts=('xkbdata' "${_pkgname}")
|
2019-02-11 10:54:46 +02:00
|
|
|
source=(https://xorg.freedesktop.org/archive/individual/data/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
|
|
|
|
ducky_mini
|
|
|
|
ru.patch
|
2021-04-19 23:31:15 +03:00
|
|
|
us.patch
|
|
|
|
base.xml.patch
|
|
|
|
evdev.xml.patch)
|
|
|
|
sha512sums=('c082a86efcf69ab50454875686b9b4c388cf48002de3728331de3c09c1349a38c9b9ad8ecace2215061c0c775e59c3dd230fffe3f24db63790aa71dc8eff8dea'
|
2019-04-04 17:40:20 +03:00
|
|
|
'ac79eb7fb16f517cf1178bcbfe83f708741feb950ee1e1c92fcea2b1e10ceae6d9f90ad860440f64da6759c843bcc10f4ac2479d323c450aeaf323bf37722257'
|
2018-10-25 15:39:00 +03:00
|
|
|
'854c52d168837a5c72559498d10dff7843275323c4082d1c741c832d068108be3a51e823c98a27ea47c5fe4f335499fdbcaa3698117740ef24c07c41161ad59b'
|
2021-04-19 23:31:15 +03:00
|
|
|
'7d9c692980c77a3b0658a5dd707ecdcd1e3fe47c2958f539f1f81dd04d5f204f779569d6b880c3f12872397d6171b2ec2caab9a4e79461c9f5828ca1c45acb08'
|
|
|
|
'fc7e4bce201538c828e44136ae2d3c39c4066a6d56413b229ad453eadd1d459aae22f218dde6f0e1afbddf3ebf995e6f8f56fd6406eff4ef6fa196207da9adb7'
|
|
|
|
'1ba6fe7aa471158b811fcb6a8efed29fb0c3685aaa373e106dc8c6b8c8e84503707ea1b71b19806351d7cae77691362f504738416ac2bfbcf7e904ff8d348247')
|
2017-12-06 14:34:47 +02:00
|
|
|
|
|
|
|
build() {
|
2017-12-06 15:17:42 +02:00
|
|
|
cd ${_pkgname}-${pkgver}
|
2017-12-06 14:34:47 +02:00
|
|
|
patch -p1 < ${srcdir}/ru.patch
|
|
|
|
patch -p1 < ${srcdir}/us.patch
|
2021-04-19 23:31:15 +03:00
|
|
|
patch -p1 < ${srcdir}/base.xml.patch
|
|
|
|
patch -p1 < ${srcdir}/evdev.xml.patch
|
2017-12-06 14:34:47 +02:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--with-xkb-base=/usr/share/X11/xkb \
|
|
|
|
--with-xkb-rules-symlink=xorg \
|
|
|
|
--enable-compat-rules=yes
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2017-12-06 15:17:42 +02:00
|
|
|
cd ${_pkgname}-${pkgver}
|
2017-12-06 14:34:47 +02:00
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
rm -f "${pkgdir}/usr/share/X11/xkb/compiled"
|
|
|
|
|
2021-04-19 23:31:15 +03:00
|
|
|
install -m644 "${srcdir}/ducky_mini" "${pkgdir}/usr/share/X11/xkb/symbols"
|
2017-12-06 14:34:47 +02:00
|
|
|
install -m755 -d "${pkgdir}/var/lib/xkb"
|
|
|
|
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
|
|
|
|
}
|