cd
test -f installed/gedit-2.6.2.tar.bz2 && mv installed/gedit-2.6.2.tar.bz2 .
test ! -f gedit-2.6.2.tar.bz2 &&
wget http://ftp.gnome.org/pub/gnome/sources/gedit/2.6/gedit-2.6.2.tar.bz2
cd /usr/local/src
find -type d -maxdepth 1 -name "gedit-*" -exec rm -r {} \;
tar xjvf ~/gedit-2.6.2.tar.bz2
cd gedit-2.6.2
chown -R root.root .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
## If make fails with an error like this:
# /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld:
# cannot find -lssl
## re-run it like this:
# make LDFLAGS=-L/usr/local/ssl/lib
make
removepkg gedit
make install
find /usr/share/locale -type f -name gedit-2.6.mo -exec rm {} \;
cd
mkdir -p -m 0700 installed
rm -f installed/gedit-*.tar.*
mv gedit-2.6.2.tar.bz2 installed/
# /usr/share/pixmaps/gedit-icon.png can be used as a desktop icon