windowtailor: add recipe (#11396)

This commit is contained in:
augiedoggie
2024-12-01 14:01:07 -07:00
committed by GitHub
parent 09ec963df8
commit 6750d1d73d

View File

@@ -0,0 +1,60 @@
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 \
application, but can also be used from a shell or in scripts.
The application allows you to change:
* Workspaces (including pinning/unpinning from all)
* Window look
* Window type
* Window flags
* Basic tiling of size/position
Tiling is a work-in-progress feature and needs improvement in calculating sizes and accounting for window
frames.
WindowTailor accepts command line arguments for all of these properties as well as a few extra \
(like zoom, minimize, send to back, ...)"
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="0dfa9ca2b1f349bd927158191b836e4d7f053a9b773cc584ffa185c99a07ad6f"
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
}