Last active
July 31, 2024 13:28
-
-
Save Akczht/62bbf1f449347e541405becae75a1a3f to your computer and use it in GitHub Desktop.
base dependencies for ntfs-3g
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
findcd() { | |
local search_string="$1" | |
target_dir=$(find . -maxdepth 1 -type d -name "$search_string*" -print -quit) | |
if [ -n "$target_dir" ]; then | |
cd "$target_dir" | |
else | |
echo "Directory not found in current directory" | |
fi | |
} | |
# Compiling pkg-config | |
findcd "pkg-config" | |
CFLAGS="-g -O2 -Wno-int-conversion" ./configure --with-internal-glib --disable-debug | |
make -j 10 | |
sudo make install | |
cd .. | |
# Compiling m4 | |
findcd "m4" | |
./configure | |
make -j 10 | |
sudo make install | |
cd .. | |
# Compiling gettext | |
findcd "gettext" | |
./configure --with-included-glib --with-included-libcroco --with-included-libunistring --with-included-libxml --with-included-gettext --with-emacs --disable-silent-rules --disable-java --disable-csharp --without-xz --without-git --without-cvs | |
make -j 10 | |
sudo make install | |
cd .. | |
# Compiling libtool | |
findcd "libtool" | |
./configure --enable-ltdl-install | |
make -j 10 | |
sudo make install | |
cd .. | |
# Compiling autoconf | |
findcd "autoconf" | |
./configure | |
make -j 10 | |
sudo make install | |
cd .. | |
# Compiling automake | |
findcd "automake" | |
./configure | |
make -j 10 | |
sudo make install | |
cd .. | |
# Compiling libgpg-error | |
findcd "libgpg-error" | |
./configure --enable-static --disable-silent-rules | |
make -j 10 | |
sudo make install | |
cd .. | |
# Compiling libgcrypt | |
findcd "libgcrypt" | |
./configure --enable-static | |
make -j 10 | |
sudo make install | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment