Files
haikuports/haiku-apps/binaryclock/binaryclock-20141223.recipe
Humdinger 1c460d8258 Fixed BinaryClock recipe
* Use safe SOURCE_URI.
* Improved description with an explanation from the readme on how
  the hell one reads this clock. :)
* Declare add_on for the included screensaver.
2017-02-10 09:16:36 +01:00

87 lines
1.6 KiB
Bash

SUMMARY="A binary clock application and screensaver"
DESCRIPTION="A Binary Clock. And yes, you really can use this to tell time! I \
have found it quite enjoyable to reprogram my brain to learn to read it at a \
glance. It just takes a little getting used to.
How to read the Binary Clock:
Each column stands for a digit in a 24 hour clock with the format: hh : mm : ss
Each column is configured like this:
8
4
2
1
so if you wanted "2", you would see: (O being off, X being on)
O
O
X
O
5 would be:
O
X
O
X
so 8:57:12pm would be 20:57:12 which would look like:
OO OO OO
OO XX OO
XO OX OX
OO XX XO
Good Luck!"
HOMEPAGE="http://github.com/HaikuArchives/BinaryClock"
COPYRIGHT="2000 David Enderson"
LICENSE="GNU GPL v2"
REVISION="3"
srcGitRev="bfefbf7f93e7a07c841fdb1162e119b0364fee85"
SOURCE_URI="https://github.com/HaikuArchives/BinaryClock/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="a9e6c772b7e801d8a75a0dced08d99d04e55355d0b33c47653725ac13de99e5e"
SOURCE_DIR="BinaryClock-$srcGitRev"
ARCHITECTURES="x86_gcc2 !x86 !x86_64"
PROVIDES="
binaryclock = $portVersion
app:BinaryClock = $portVersion
add_on:BinaryClock = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:make
cmd:g++
cmd:ld
"
USER_SETTINGS_FILES="
settings/BinaryClock
"
BUILD()
{
cd Application
make $jobArgs OBJ_DIR=objects
cd ../Screensaver
make $jobArgs OBJ_DIR=objects
}
INSTALL()
{
mkdir -p $appsDir
mkdir -p $addOnsDir/Screen\ Savers/
cp Application/objects/BinaryClock $appsDir
addAppDeskbarSymlink $appsDir/BinaryClock "Binary Clock"
cp Screensaver/objects/BinaryClock $addOnsDir/Screen\ Savers
}