mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
bgswitch: add recipe for 0.1.0 (#10373)
This commit is contained in:
57
haiku-apps/bgswitch/bgswitch-0.1.0.recipe
Normal file
57
haiku-apps/bgswitch/bgswitch-0.1.0.recipe
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user