-
Notifications
You must be signed in to change notification settings - Fork 0
/
androidxmrigcc.sh
39 lines (29 loc) · 932 Bytes
/
androidxmrigcc.sh
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
#!/bin/bash
CCDIR="/data/data/com.termux/files/home/CC"
GITDIR="/data/data/com.termux/files/home/CC/git"
git_and_build_hwloc() {
if [ ! -d "$GITDIR" ]; then
mkdir "$GITDIR"
fi
cd "$GITDIR"
git clone https://github.com/open-mpi/hwloc
cd hwloc
./autogen.sh && ./configure && make
}
if [ ! -d "$CCDIR" ]; then
mkdir "$CCDIR"
fi
echo "We need to change the termux repo. Select (grimler) for best results on main repo"
echo -ne "(Press enter to continue): "
read blah
sleep 1
termux-change-repo
apt-get -q -y install autoconf automake cmake git libtool binutils
apt-get upgrade -y
git_and_build_hwloc
cd "$GITDIR" && git clone https://github.com/freQniK/xmrigCC
cd xmrigCC && mkdir build && cd build
cmake .. -DHWLOC_INCLUDE_DIR=$GITDIR/hwloc/include -DHWLOC_LIBRARY=$GITDIR/hwloc/hwloc/.libs/libhwloc.so
make
echo "Now run: ./derominers.sh"
echo "bye."