summaryrefslogtreecommitdiff
path: root/INSTALL.rst
blob: ffac13212f7c42c1cfd7d6c07bf0a53a555416d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Installation
=============

To install ``uirc``, you need to have the following items:

* A C compiler (``uirc`` uses ``gcc`` by default, but you can change what compiler you use in the `config.mk file <config.mk>`_.)
* The cURL libraries
* The ``stb`` libraries

If you want to install all three at once, follow the instructions for your system below.

Debian/Debian-based (Ubuntu, Pop!_OS, etc.)
--------------------------------------
.. code:: bash

  $ sudo apt install git gcc libcurl3-gnutls libstb-dev
  $ git clone https://github.com/brysonsteck/uirc && cd uirc
  # build uirc with:
  $ make
  # or, if you want to install globally, use:
  $ sudo make install

RHEL-based (Fedora, CentOS, etc.)
----------------------------------
.. code:: bash

  $ sudo dnf install git gcc libcurl-devel stb-devel
  $ git clone https://github.com/brysonsteck/uirc && cd uirc
  # build uirc with:
  $ make
  # or, if you want to install globally, use:
  $ sudo make install

OpenSUSE
---------
.. code:: bash

  $ sudo zypper install git gcc libcurl-devel stb-devel
  $ git clone https://github.com/brysonsteck/uirc && cd uirc
  # build uirc with:
  $ make
  # or, if you want to install globally, use:
  $ sudo make install

Arch/Arch-based (Manjaro, EndeavourOS, etc.)
---------------------------------------------
.. code:: bash

  # 'stb' is an AUR package and must be installed with an AUR helper, such as 'yay'.
  $ yay -S git gcc libcurl-gnutls stb
  $ git clone https://github.com/brysonsteck/uirc && cd uirc
  # build uirc with:
  $ make
  # or, if you want to install globally, use:
  $ sudo make install

FreeBSD/OpenBSD
----------------
.. code:: bash

  $ doas pkg_add git curl
  # in BSD, you must install the 'stb' library manually from GitHub.
  # in order to do this, make sure wget is installed with:
  $ doas pkg_add wget
  # then, clone the repository and install the 'stb' library:
  $ git clone https://github.com/brysonsteck/uirc && cd uirc
  $ doas make stb

To build ``uirc`` on BSD, you need to uncomment the OPTIONS line at the bottom of the `config.mk <config.mk>`_ file. Additionally, if you would rather use ``cc`` instead of ``gcc``, you can change that in this file as well. Then, you can continue with the instructions.

.. code:: bash

  # build uirc with:
  $ make
  # or, if you want to install globally, use:
  $ doas make install