Salihbasic / vactija

Vaktija.ba CLI for Linux and macOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vactija

Bismillah.

This is an unofficial Linux/macOS front-end for Vaktija.ba. It relies on the data provided by this service and presents it on the command-line interface.

Dependences

Vactija uses libcurl to access API data and therefore also requires a working internet connection (at least once per day).

To parse JSON data, it depends on jsmn which is a header library included in the program's source code.

Installation and configuration

You will need a C compiler, make and libcurl to install Vactija:

  1. Run git clone https://github.com/Salihbasic/vactija
  2. cd vactija
  3. cp config.def.h config.h (and edit the config according to your preferences)
  4. Optionally edit Makefile for extra configuration
  5. Run sudo make install clean to install vactija

You might also wish to use make release or make testrel which will create a new directory within the vactija directory (either release or testrel). The testing release can be passed to GDB for debugging. Regular release is the binary like the one used by install except it is not installed to any directory.

If you wish to reconfigure the application, simply edit config.h and run sudo make install clean (or any other appropriate option) again.

Makefile options

INSTALLDIR holds the directory used by make install, it defaults to /usr/local/bin/.

TERMCOLORS allows you to decide whether you want to use ANSI colour codes (enabled by default) for coloured output (raw output is unaffected). If you wish to disable it, simply remove -DUSE_ANSI_COLOR and leave it empty.

About

Vaktija.ba CLI for Linux and macOS

License:Other


Languages

Language:C 97.8%Language:Makefile 2.2%