Blueno_Termux/myTermux/optional/compile/install/ncmpcpp-compile.sh
2022-04-01 08:36:29 -04:00

25 lines
717 B
Bash
Executable File

#!/usr/bin/env bash
DEPENDENCY_PACKAGES=(
git clang autoconf automake binutils
libtool pkg-config boost taglib
)
for DEPENDENCY_PACKAGE in ${DEPENDENCY_PACKAGES[@]}; do
pkg i -y $DEPENDENCY_PACKAGE
done
git clone --depth=1 https://github.com/ncmpcpp/ncmpcpp $HOME/ncmpcpp
cd $HOME/ncmpcpp
libtoolize && aclocal && autoheader && autoconf && automake --add-missing
autoupdate
./autogen.sh
sed -i '36i\#include <linux/in.h>' src/screens/visualizer.cpp
./configure --enable-outputs --enable-visualizer --enable-clock --enable-static-boost --with-taglib
make
strip src/ncmpcpp
cp $HOME/myTermux/optional/compile/config/ncmpcpp/config-0.9\^ ~/.config/ncmpcpp/config
cp src/ncmpcpp $PREFIX/bin/ncmpcpp
mpd
ncmpcpp