0
0
Fork 0
haikuports/app-misc/peaclock/peaclock-0.1.7.recipe

59 lines
1.3 KiB
Bash
Raw Permalink Normal View History

2019-01-14 08:04:52 +00:00
SUMMARY="A colourful binary clock for the terminal"
DESCRIPTION="Features:
* digital clock
* binary clock
* 12/24 hour time
* customize with hex colour codes
* set a custom unicode character for the binary clock graphic
* compact or expanded mode
* toggle visibility of digital and binary clocks
* command prompt with a readline-like interface"
2019-01-27 05:18:46 +00:00
HOMEPAGE="https://octobanana.com/software/peaclock"
2019-01-14 08:04:52 +00:00
COPYRIGHT="2019 Brett Robinson"
LICENSE="MIT"
REVISION="1"
2019-01-27 05:18:46 +00:00
SOURCE_URI="https://github.com/octobanana/peaclock/archive/$portVersion.tar.gz"
2019-01-29 12:28:48 +00:00
CHECKSUM_SHA256="dd8a8746f8f0f0eb5690d10d13a61b55e6b11c78e98637879b6140c9ad058a65"
2019-01-14 08:04:52 +00:00
SOURCE_FILENAME="peaclock-$portVersion.tar.gz"
ARCHITECTURES="all !x86_gcc2"
2019-01-14 08:04:52 +00:00
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$prefix/bin
fi
PROVIDES="
peaclock$secondaryArchSuffix = $portVersion
cmd:peaclock
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
"
defineDebugInfoPackage peaclock$secondaryArchSuffix \
"$commandBinDir"/peaclock
BUILD()
{
mkdir -p build
cd build
cmake ../ -DCMAKE_BUILD_TYPE=RelWithDebInfo
make $jobArgs
}
INSTALL()
{
2019-01-27 05:18:46 +00:00
install -m 755 -d "$commandBinDir"
2019-01-14 08:04:52 +00:00
install -m 755 build/peaclock "$commandBinDir"
}