Files
haikuports/haiku-apps/keymapswitcher/keymapswitcher-1.2.7.11.recipe
2018-11-16 16:01:43 +10:00

54 lines
1.5 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="5"
srcGitRev="a821a53a3dbe703feadc78e797c28ef60c57ca74"
SOURCE_URI="https://github.com/HaikuArchives/KeymapSwitcher/archive/$srcGitRev.zip"
CHECKSUM_SHA256="7440125b8be217a46ff026a08175fddeb5122bde3091203ea1a6c0c8c55ae743"
SOURCE_DIR="KeymapSwitcher-$srcGitRev"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
keymapswitcher$secondaryArchSuffix = $portVersion compat >= 1.2.7
app:KeymapSwitcher = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
makefile_engine
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
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=/boot/system/develop HPKG_INSTALL_DIR=$prefix hpkg
addPreferencesDeskbarSymlink $preferencesDir/KeymapSwitcher
}