1SUMMARY="An easy to use Keymap Switcher"
2DESCRIPTION="This is a keymap switcher for Haiku. It is very similar to what \
3you used to have in Windows to change the keymap with hotkeys, but has some \
4additional features (and lacks some, for sure)."
5HOMEPAGE="https://github.com/HaikuArchives/KeymapSwitcher"
6COPYRIGHT="
7	1999-2003 Stas Maximov
8	2003-2013 Siarzhuk Zharski
9	"
10LICENSE="BSD (4-clause)"
11REVISION="1"
12SOURCE_URI="https://github.com/HaikuArchives/KeymapSwitcher/archive/$portVersion.tar.gz"
13CHECKSUM_SHA256="1622bffb6b7ed82e6f7473ec715d800abc33f9a17a609d7f65b61580f6c8cbfd"
14SOURCE_DIR="KeymapSwitcher-$portVersion"
15
16ARCHITECTURES="all"
17
18PROVIDES="
19	keymapswitcher = $portVersion compat >= 1.2.7
20	app:KeymapSwitcher = $portVersion
21	"
22REQUIRES="
23	haiku
24	"
25
26BUILD_REQUIRES="
27	"
28BUILD_PREREQUIRES="
29	haiku_devel
30	makefile_engine
31	cmd:gcc
32	cmd:ld
33	cmd:make
34	cmd:sed
35	"
36
37BUILD()
38{
39	make $jobArgs BUILDHOME=/system/develop HPKG_INSTALL_DIR=$prefix
40}
41
42INSTALL()
43{
44	# We're not interested in the package, but that target copies the
45	# interesting files to a well-known directory structure. Otherwise we'd have
46	# to find out the name of the object dir and collect everything ourselves.
47	# Obviously an install target would be even better.
48	make BUILDHOME=/system/develop HPKG_INSTALL_DIR=$prefix hpkg
49
50	addPreferencesDeskbarSymlink $preferencesDir/KeymapSwitcher
51}
52