mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
peaclock: new recipe (#3556)
This commit is contained in:
58
app-misc/peaclock/peaclock-0.1.3.recipe
Normal file
58
app-misc/peaclock/peaclock-0.1.3.recipe
Normal file
@@ -0,0 +1,58 @@
|
||||
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"
|
||||
HOMEPAGE="https://github.com/octobanana/peaclock"
|
||||
COPYRIGHT="2019 Brett Robinson"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="$HOMEPAGE/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="0041de0e50429786dff4152c60f6dbd84249287d289ad6d7573e47c9f9b62afc"
|
||||
SOURCE_FILENAME="peaclock-$portVersion.tar.gz"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
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()
|
||||
{
|
||||
install -d "$commandBinDir"
|
||||
install -m 755 build/peaclock "$commandBinDir"
|
||||
}
|
||||
Reference in New Issue
Block a user