1Termux
2======
3
4Termux is a terminal emulator that ships a base linux environment using the Debian package system
5but compiling everything to run on native Android. The result is a fully functional shell on
6Android devices for x86, arm and arm64.
7
8Installation
9------------
10
11The Termux maintainer of the radare2 package updates the package really fast after every release
12which happens every 6 weeks. So in this case, as long as it's supposed to run on embedded devices
13it is ok to just install the package from Termux unless you really want to track git master or
14develop for this platform.
15
16	sudo apt install radare2
17
18Building from git
19-----------------
20
21The packages required to build are:
22
23	sudo apt install git make patch clang
24
25Now you can clone the repo and build:
26
27	git clone --depth 1 https://github.com/radareorg/radare2
28	cd radare2
29	sys/termux.sh
30
31Building with meson
32-------------------
33
34If you want to build with meson:
35
36	sudo apt install python
37	sudo pip install meson
38	sudo r2pm -i ninja
39
40And then you can run the build:
41
42	make meson
43
44To install:
45
46	make meson-symstall PREFIX=/data/data/com.termux/files/usr
47
48Updating
49--------
50
51To update the repo and rebuild you can do a full and clean rebuild by just running sys/termux.sh
52or opt for typing `make` or `make meson` and it will just build what has changed, is something
53fails please do a clean build like this:
54
55	git reset --hard
56	git clean -xdf
57	sys/termux.sh
58
59