From 69be287aca9c2c4a8b12c4d669bbcc496e92202f Mon Sep 17 00:00:00 2001 From: augiedoggie Date: Wed, 24 Apr 2024 00:33:34 -0600 Subject: [PATCH] bgswitch: add recipe for 0.1.0 (#10373) --- haiku-apps/bgswitch/bgswitch-0.1.0.recipe | 57 +++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 haiku-apps/bgswitch/bgswitch-0.1.0.recipe diff --git a/haiku-apps/bgswitch/bgswitch-0.1.0.recipe b/haiku-apps/bgswitch/bgswitch-0.1.0.recipe new file mode 100644 index 000000000..b67207857 --- /dev/null +++ b/haiku-apps/bgswitch/bgswitch-0.1.0.recipe @@ -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 +}