Files
haikuports/haiku-apps/keycursor/keycursor-1.1.recipe
Gerasim Troeglazov 26661ce007 KeyCursor: add recipe
2021-12-15 20:38:16 +10:00

54 lines
1.3 KiB
Bash

SUMMARY="Control a mouse with a keyboard"
DESCRIPTION="Basic usage:
Hit and release the toggle key(s) to activate KeyCursor, then use the arrow \
keys to move the cursor.
The space bar key acts as the primary button, and if you press SHIFT while \
\"clicking\" with the space key, you get a secondary button event.
Hit again the toggle key(s) to deactivate it."
HOMEPAGE="https://github.com/HaikuArchives/KeyCursor"
COPYRIGHT="Nathan Schrenk, Oscar Lesta, Thomas Thiriez"
LICENSE="Be Sample Code License"
REVISION="1"
SOURCE_URI="https://github.com/HaikuArchives/KeyCursor/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="fd6739ef83362a8f6aea0172e1bff6e8cbb54e3ababf29838148f4e550e50151"
SOURCE_DIR="KeyCursor-$portVersion"
ARCHITECTURES="all"
PROVIDES="
keycursor = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:gcc
cmd:ld
cmd:make
"
BUILD()
{
make $jobArgs BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
}
INSTALL()
{
mkdir -p $preferencesDir \
$addOnsDir/input_server/{devices,filters}
cp src/KeyCursor $addOnsDir/input_server/devices/KeyCursorDevice
cp src/KeyCursor $addOnsDir/input_server/filters/KeyCursorFilter
cp preflet/KeyCursor $preferencesDir
addPreferencesDeskbarSymlink $preferencesDir/KeyCursor
}