summaryrefslogtreecommitdiff
path: root/package/bkeymaps/Makefile
blob: d12c220ada780c8f293b2da20bbe3e8dcbe22085 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		bkeymaps
PKG_VERSION:=		1.13
PKG_RELEASE:=		2
PKG_HASH:=		59d41ddb0c7a92d8ac155a82ed2875b7880c8957ea4308afa633c8b81e5b8887
PKG_DESCR:=		binary keymaps for busybox loadkmap
PKG_SECTION:=		sys/utils
PKG_BUILDDEP:=		base-files
PKG_SITES:=		http://openadk.org/distfiles/

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz

PKG_DFLT_BKEYMAPS:=	y if ADK_TARGET_WITH_INPUT

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,BKEYMAPS,bkeymaps,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIG_STYLE:=		manual
BUILD_STYLE:=		manual
INSTALL_STYLE:=		manual

KBD_LAYOUT:=$(strip $(subst ",, $(ADK_RUNTIME_KBD_LAYOUT)))
KBD_DIR:=$(shell echo $(KBD_LAYOUT)|cut -c 1-2)

do-install:
	test -z $(ADK_RUNTIME_KBD_LAYOUT) || \
	($(INSTALL_DIR) $(IDIR_BKEYMAPS)/usr/share/keymaps/ && \
	$(INSTALL_DATA) $(WRKBUILD)/bkeymaps/$(KBD_DIR)/$(KBD_LAYOUT).bmap \
		$(IDIR_BKEYMAPS)/usr/share/keymaps/keymap.bmap );

include ${ADK_TOPDIR}/mk/pkg-bottom.mk