Files
haikuports/haiku-apps/keymapswitcher/keymapswitcher-1.2.7.11.recipe
EXL db1eb15228 KeymapSwitcher: Bump git revision (#3482)
Add Opt+Space keyboard shortcut to switch layout
2018-12-19 23:41:44 +08:00

53 lines
1.4 KiB
Bash

SUMMARY="Easy to use Keymap Switcher for Haiku"
DESCRIPTION="This is a keymap switcher for Haiku. It is very similar to what \
you used to have in Windows to change the keymap with hotkeys, but has some \
additional features (and lacks some, for sure)."
HOMEPAGE="https://github.com/HaikuArchives/KeymapSwitcher"
COPYRIGHT="
1999-2003 Stas Maximov
2003-2013 Siarzhuk Zharski
"
LICENSE="BSD (4-clause)"
REVISION="8"
srcGitRev="efcfdf475438e6bec09eb589fbdeee386a04dec0"
SOURCE_URI="https://github.com/HaikuArchives/KeymapSwitcher/archive/$srcGitRev.zip"
CHECKSUM_SHA256="502dbde4f63cf775e2e1cdb46b02ce80a37ffa37f12acaf7ed7f6b91afb66587"
SOURCE_DIR="KeymapSwitcher-$srcGitRev"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
keymapswitcher = $portVersion compat >= 1.2.7
app:KeymapSwitcher = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku_devel
makefile_engine
cmd:gcc
cmd:ld
cmd:make
cmd:sed
"
BUILD()
{
make $jobArgs BUILDHOME=/system/develop HPKG_INSTALL_DIR=$prefix
}
INSTALL()
{
# We're not interested in the package, but that target copies the
# interesting files to a well-known directory structure. Otherwise we'd have
# to find out the name of the object dir and collect everything ourselves.
# Obviously an install target would be even better.
make BUILDHOME=/system/develop HPKG_INSTALL_DIR=$prefix hpkg
addPreferencesDeskbarSymlink $preferencesDir/KeymapSwitcher
}