add: Flat look for Haiku (#5192)

This commit is contained in:
nhtello
2020-07-17 03:20:40 -03:00
committed by GitHub
parent 853c9b2b7b
commit c474724413

View File

@@ -0,0 +1,61 @@
SUMMARY="Haiku Flat UI look"
DESCRIPTION="This package provides a flat look UI for Haiku with three themes.
Usage: To use the themes included, you need to install first, the package 'Theme Manager' \
from haiku-depot. After install it, select from the list: 'DarkFlat'/'LightFlat'/'MoonFlat'.
Important: the UI needs to repaint all after select one theme, please restart \
the computer or quit 'Deskbar' and 'Tracker' services from 'ProcessControler' (they \
will restart auto).
Credits for:
- Nahuel Tello (nhtello)
- Haiku DefaultDecorator and DefaultControlLook."
HOMEPAGE="https://github.com/unarix/haiku_darkstyle/"
COPYRIGHT="2020, Nahuel Tello, Haiku Inc."
LICENSE="MIT
Zlib"
REVISION="1"
SOURCE_URI="https://github.com/unarix/haiku_darkstyle/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="265ee577f31e723dedd3443df1d7c76f5d83b2134b712d8eb0377becc573898e"
SOURCE_FILENAME="haiku_darkstyle-$portVersion.tar.gz"
SOURCE_DIR="haiku_darkstyle-$portVersion"
ARCHITECTURES="?x86_gcc2 ?x86 x86_64"
PROVIDES="
flatstyle$secondaryArchSuffix = $portVersion
addon:FlatControlLook$secondaryArchSuffix = $portVersion
addon:FlatDecorator$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
makefile_engine
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
make OBJ_DIR=objects $jobArgs
}
INSTALL()
{
control_lookDir=$addOnsDir/control_look
mkdir -p $control_lookDir
cp -a FlatControlLook/objects/FlatControlLook $control_lookDir
decoratorsDir=$addOnsDir/decorators
mkdir -p $decoratorsDir
cp -a FlatDecorator/objects/FlatDecorator $decoratorsDir
dataD=$dataDir/UIThemes
mkdir -p $dataD
cp -a DarkFlat/ LightFLat/ MoonFLat/ $dataD
}