keycursor: update to v1.2

This commit is contained in:
Humdinger
2024-01-02 12:12:37 +01:00
parent 2742a3061f
commit f1d5343114
2 changed files with 55 additions and 53 deletions

View File

@@ -1,53 +0,0 @@
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
}

View File

@@ -0,0 +1,55 @@
SUMMARY="Control your mouse with the keyboard"
DESCRIPTION="KeyCursor lets you control the mouse pointer with the keyboard.
In the preference window, you choose the modifier key combination that will toggle control on/off. \
When toggled on, the cursor keys will move the mouse pointer.
Hit SPACE for a left-click, SHIFT+SPACE for a right-click.
PageUp and PageDown act as a vertical mouse wheel.
An optional icon in the Deskbar tray shows if control is onor off."
HOMEPAGE="https://github.com/HaikuArchives/KeyCursor"
COPYRIGHT="Oscar Lesta, Humdinger"
LICENSE="Be Sample Code License
MIT"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="19933dc183d6841a8650d8e9a033bc953082a2c337da070d9b986a14b3b084c1"
SOURCE_DIR="KeyCursor-$portVersion"
ARCHITECTURES="all"
PROVIDES="
keycursor = $portVersion
add_on:KeyCursorInputDevice = $portVersion
add_on:KeyCursorInputFilter = $portVersion
app:KeyCursor = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:g++
cmd:make
"
BUILD()
{
make $jobArgs
}
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
}