Files
haikuports/haiku-apps/bgswitch/bgswitch-0.1.0.recipe
2024-04-24 00:33:34 -06:00

58 lines
1.4 KiB
Bash

SUMMARY="A command line tool to change workspace background settings"
DESCRIPTION="A small command line tool to change the desktop background settings on Haiku. It is \
possible to change the wallpaper, placement mode, offset/position, text outline, and background \
color. These settings can be changed for each individual workspace or all workspaces at once. \
This allows creating scripts that will rotate the background."
HOMEPAGE="https://github.com/augiedoggie/bgswitch"
COPYRIGHT="2024 Chris Roberts"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/augiedoggie/bgswitch/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="94c5ee013a4a6b865c05010224a62ea492506d1ba62fe8fb151c6a5675c95d6a"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
bgswitch$secondaryArchSuffix = $portVersion
cmd:bgswitch
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
cmd:sphinx_build
"
PATCH()
{
# temporary fix
sed -i -e 's, FORCE,,' CMakeLists.txt
}
BUILD()
{
cmake -B build -S . \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$prefix \
-DDOCS_DIR=$docDir
make -C build $jobArgs
}
INSTALL()
{
make -C build install
# temporary fix
settype -t text/css $docDir/UserGuide/_static/*.css
settype -t text/html $docDir/UserGuide/index.html
}