blob: 0a05026d439a1310804087110716d7cbe4ce556e [file] [log] [blame]
Samuel Mendoza-Jonas6df99172016-03-29 13:49:30 +11001################################################################################
2#
3# loadkeys - Custom installer for the kbd package
4#
5################################################################################
6
7LOADKEYS_VERSION = 2.0.3
8LOADKEYS_SOURCE = kbd-$(LOADKEYS_VERSION).tar.xz
9LOADKEYS_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kbd
10LOADKEYS_CONF_OPTS = --disable-vlock
11LOADKEYS_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
12LOADKEYS_LICENSE = GPLv2+
13LOADKEYS_LICENSE_FILES = COPYING
14LOADKEYS_INSTALL_STAGING = NO
15LOADKEYS_INSTALL_TARGET = YES
16
17define LOADKEYS_INSTALL_TARGET_CMDS
18 $(INSTALL) -D -m 0755 $(@D)/src/loadkeys \
19 $(TARGET_DIR)/usr/bin/
20endef
21
22define LOADKEYS_POST_INSTALL
Joel Stanley5ab5fdb2016-10-31 23:10:24 +103023 $(INSTALL) -D -m 0755 $(BR2_EXTERNAL_OP_BUILD_PATH)/package/loadkeys/S16-keymap \
Samuel Mendoza-Jonas6df99172016-03-29 13:49:30 +110024 $(TARGET_DIR)/etc/init.d/
Joel Stanley5ab5fdb2016-10-31 23:10:24 +103025 $(INSTALL) -D -m 0755 $(BR2_EXTERNAL_OP_BUILD_PATH)/package/loadkeys/backtab-keymap \
Samuel Mendoza-Jonas6df99172016-03-29 13:49:30 +110026 $(TARGET_DIR)/etc/kbd/config
27endef
28
29LOADKEYS_POST_INSTALL_TARGET_HOOKS += LOADKEYS_POST_INSTALL
30
31$(eval $(autotools-package))