prayers time calculator, written in nasm.
- standalone nasm
- unix portable syscalls
- tested on Linux, OpenBSD, FreeBSD and NetBSD
- OpenBSD pledge.
- binary size ≈ 7 kb
- instructions ≈ 250-400
- branches ≈ 6-20
dependency
- nasm (assembler)
- ld (linker)
current
git clone git://git.afify.dev/azan
cd azan/
make
make install
latest release
wget $(curl -s https://git.afify.dev/azan/tags.xml | grep --color=never -m 1 -o "\[v.*\]" | tr -d '[]' | awk '{print "https://git.afify.dev/azan/releases/azan-"$1".tar.gz"}')
tar -xzf azan-*.tar.gz && cd azan-*/
make
make install
$ azan
$ azan [-AaNnUuv]
$ man azan
option | description |
---|---|
-A |
print all prayers time, 12-hour clock format. |
-a |
print all prayers time, 24-hour clock format. |
-N |
print next prayer time, 12-hour clock format. |
-n |
print next prayer time, 24-hour clock format. |
-U |
print all prayers time, unix-time format. |
-u |
print next prayer time, unix-time format. |
-v |
print version. |
The configuration of azan is done by creating a custom config.s and (re)compiling the source code.