/azan

prayers time calculator written in nasm x86-64

Primary LanguageAssemblyBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

azan

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

Installation

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

Run

$ azan

Options

$ 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.

Configuration

The configuration of azan is done by creating a custom config.s and (re)compiling the source code.