From 7dae5efd2cedc8e6e85de541f223b8d339b427c6 Mon Sep 17 00:00:00 2001 From: Crestwave <35413013+Crestwave@users.noreply.github.com> Date: Mon, 14 Jan 2019 08:04:52 +0000 Subject: [PATCH] peaclock: new recipe (#3556) --- app-misc/peaclock/peaclock-0.1.3.recipe | 58 +++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 app-misc/peaclock/peaclock-0.1.3.recipe diff --git a/app-misc/peaclock/peaclock-0.1.3.recipe b/app-misc/peaclock/peaclock-0.1.3.recipe new file mode 100644 index 000000000..51d78c7b5 --- /dev/null +++ b/app-misc/peaclock/peaclock-0.1.3.recipe @@ -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" +}