# arj 2.78/3.10 build 22
# ======================
# FYI, I was unable to build 'build 22' or 21 with gcc 3.4.4 on one machine,
# but had no trouble on another running gcc 3.3.6 After a quick look, I
# wasn't able to find any patches or other guidance. If you know of a fix,
# let me know.
cd
test -f installed/arj-3.10.22.tar.gz && mv installed/arj-3.10.22.tar.gz .
test ! -f arj-3.10.22.tar.gz &&
wget http://download.sf.net/arj/arj-3.10.22.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "arj-*" -exec rm -r {} \;
tar xzvf ~/arj-3.10.22.tar.gz
cd arj-3.10.22
test $UID = 0 && chown -R root:root .
cd gnu
autoconf
automake -a -f
./configure
cd ..
make prepare
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/arj-*.tar.*
mv arj-3.10.22.tar.gz installed/