1SUMMARY="A binary clock application and screensaver"
2DESCRIPTION="A Binary Clock. And yes, you really can use this to tell time! I \
3have found it quite enjoyable to reprogram my brain to learn to read it at a \
4glance. It just takes a little getting used to.
5
6How to read the Binary Clock:
7
8Each column stands for a digit in a 24 hour clock with the format: hh : mm : ss
9Each column is configured like this:
10 8
11 4
12 2
13 1
14
15so if you wanted "2", you would see: (O being off, X being on)
16 O
17 O
18 X
19 O
20
215 would be:
22 O
23 X
24 O
25 X
26
27so 8:57:12pm would be 20:57:12 which would look like:
28 OO	 OO	 OO
29 OO	 XX	 OO
30 XO	 OX	 OX
31 OO	 XX	 XO
32
33Good Luck!"
34HOMEPAGE="https://github.com/HaikuArchives/BinaryClock"
35COPYRIGHT="2000 David Enderson"
36LICENSE="GNU GPL v2"
37REVISION="4"
38srcGitRev="bfefbf7f93e7a07c841fdb1162e119b0364fee85"
39SOURCE_URI="https://github.com/HaikuArchives/BinaryClock/archive/$srcGitRev.tar.gz"
40CHECKSUM_SHA256="a9e6c772b7e801d8a75a0dced08d99d04e55355d0b33c47653725ac13de99e5e"
41SOURCE_DIR="BinaryClock-$srcGitRev"
42
43ARCHITECTURES="!all x86_gcc2"
44
45USER_SETTINGS_FILES="
46	settings/BinaryClock
47	"
48
49PROVIDES="
50	binaryclock = $portVersion
51	add_on:BinaryClock = $portVersion
52	app:BinaryClock = $portVersion
53	"
54REQUIRES="
55	haiku
56	"
57
58BUILD_REQUIRES="
59	haiku_devel
60	"
61BUILD_PREREQUIRES="
62	makefile_engine
63	cmd:g++
64	cmd:ld
65	cmd:make
66	"
67
68BUILD()
69{
70	cd Application
71	make $jobArgs OBJ_DIR=objects
72
73	cd ../Screensaver
74	make $jobArgs OBJ_DIR=objects
75}
76
77INSTALL()
78{
79	mkdir -p $appsDir
80	mkdir -p $addOnsDir/Screen\ Savers/
81
82	cp Application/objects/BinaryClock $appsDir
83	addAppDeskbarSymlink $appsDir/BinaryClock "Binary Clock"
84
85	cp Screensaver/objects/BinaryClock $addOnsDir/Screen\ Savers
86}
87