Files
haikuports/haiku-apps/windowtailor/windowtailor-0.2.recipe
2024-12-08 11:51:51 -07:00

68 lines
1.9 KiB
Bash

SUMMARY="An application to adjust the properties of open windows"
DESCRIPTION="WindowTailor is an application which allows you to adjust the properties of open \
windows. It is primarily intended to be launched by assigning keyboard shortcuts from the \
Shortcuts preference application, but can also be used from a shell or in scripts. Creating a \
keyboard shortcut with no extra command arguments will open the main interface of the application \
and allow you to manage the currently active window.
WindowTailor allows you to change:
* Visibile workspaces
* Window look
* Window type
* Window flags
* Basic tiling of size/position
WindowTailor also accepts command line arguments for all of these properties as well as a few \
extra (like zoom, minimize, send to back, ...). This allows you to set up keyboard shortcuts for \
frequently used actions.
For example:
* a shortcut to pin/unpin windows from all workspaces with the --pintoggle argument
* window tiling shortcuts that are mapped to the number pad of a keyboard
* more convenient shortcuts for commands like minimize/zoom/sendtoback
"
HOMEPAGE="https://codeberg.org/augiedoggie/WindowTailor/"
COPYRIGHT="2024 Chris Roberts"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://codeberg.org/augiedoggie/WindowTailor/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="6cedc2734c3b508fd1717693db583be2f12281d1f8b16617c38f740d0725a66c"
SOURCE_DIR="windowtailor"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
WindowTailor$secondaryArchSuffix = $portVersion
app:WindowTailor
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake \
-B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$prefix \
-S .
make -C build $jobArgs
}
INSTALL()
{
mkdir -pv $appsDir
cp -afv build/WindowTailor $appsDir
}