Linux HOWTOs

About | Home | Search


HOWTO: enca
Description: Extremely Naive Charset Analyser
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# Enca 1.8
# ========
# Prerequisites:
# gawk
# grep
# sed
# mktemp
# recode
# perl's piconv
# iconv

cd
test -f installed/enca-1.8.tar.bz2 && mv installed/enca-1.8.tar.bz2 .
test ! -f enca-1.8.tar.bz2 &&
 wget http://trific.ath.cx/Ftp//enca/enca-1.8.tar.bz2

# Verify tarball w/ md5sum:
echo "c7ca49601dd80d0300bbb80d5121cf75  enca-1.8.tar.bz2" | md5sum -c

# Verify tarball w/ sha1sum:
# (this came from my gpg-verified tarball)
echo "d1d998b4967d5e09ff17b6b670802215f7a7193b  enca-1.8.tar.bz2" | \
 sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 4E98AB9A > /dev/null 2>&1 || gpg --recv-keys 4E98AB9A ) &&
 wget -nc http://trific.ath.cx/Ftp//enca/enca-1.8.tar.bz2.sig &&
  gpg --verify enca-1.8.tar.bz2.sig && rm enca-1.8.tar.bz2.sig

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "enca-*" -exec rm -r {} \;
tar xjvf ~/enca-1.8.tar.bz2
cd enca-1.8
test $UID = 0 && chown -R root:root .
./configure
make
make check
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/enca-*.tar.*
mv enca-1.8.tar.bz2 installed/


# If you ever want to uninstall enca, this should do it:
cd
su
test -d src/enca-* && ( cd src/enca-* ; make uninstall )
rm -f /usr/local/bin/enca /usr/local/include/enca.h \
 /usr/local/lib/libenca.* /usr/local/lib/pkgconfig/enca.pc \
 /usr/local/libexec/enca /usr/local/man/man1/enca.1 \
 /usr/local/share/gtk-doc/html/libenca
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "enca-*" -exec rm -r {} \;
rm -f ~/installed/enca-*.tar.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>