termux-packages/x11-packages/xkeyboard-config/build.sh

23 lines
974 B
Bash
Raw Normal View History

2018-09-10 00:42:26 +02:00
TERMUX_PKG_HOMEPAGE=https://www.freedesktop.org/wiki/Software/XKeyboardConfig/
TERMUX_PKG_DESCRIPTION="X keyboard configuration files"
TERMUX_PKG_LICENSE="MIT"
2019-05-17 00:18:48 +02:00
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
2019-05-19 00:16:28 +02:00
TERMUX_PKG_VERSION=2.26
2018-09-10 00:42:26 +02:00
TERMUX_PKG_SRCURL=https://xorg.freedesktop.org/archive/individual/data/xkeyboard-config/xkeyboard-config-${TERMUX_PKG_VERSION}.tar.bz2
2019-05-19 00:16:28 +02:00
TERMUX_PKG_SHA256=393718c7460cd06c4e8cb819d943ca54812ea476f32714c4d8975c77031a038e
2018-09-10 00:42:26 +02:00
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_BUILD_DEPENDS="libx11"
2018-09-10 00:42:26 +02:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--with-xkb-rules-symlink=xorg
--with-xkb-base=${TERMUX_PREFIX}/share/X11/xkb
--enable-compat-rules=yes
"
termux_step_post_make_install() {
if [ -f "${TERMUX_PREFIX}/share/pkgconfig/xkeyboard-config.pc" ]; then
mkdir -p "${TERMUX_PREFIX}/lib/pkgconfig" || exit 1
mv -f "${TERMUX_PREFIX}/share/pkgconfig/xkeyboard-config.pc" "${TERMUX_PREFIX}/lib/pkgconfig/xkeyboard-config.pc" || exit 1
fi
2018-09-10 00:42:26 +02:00
}