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