cd
test -f installed/gpa-0.7.3.tar.bz2 && mv installed/gpa-0.7.3.tar.bz2 .
test ! -f gpa-0.7.3.tar.bz2 &&
wget http://wald.intevation.org/frs/download.php/151/gpa-0.7.3.tar.bz2
# Verify tarball w/ md5sum:
# (this came from my gpg and sha1sum-verified tarball)
echo "a3626266f9dda506445c7297c4172a65 gpa-0.7.3.tar.bz2" | md5sum -c
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gpa-*" -exec rm -r {} \;
tar xjvf ~/gpa-0.7.3.tar.bz2
cd gpa-0.7.3
test $UID = 0 && chown -R root:root .
./configure --disable-nls
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/gpa-*.tar.*
mv gpa-0.7.3.tar.bz2 installed/
# /usr/local/share/pixmaps/gpa.png can be used as a desktop icon
# If you ever need to uninstall GPA, this should do it:
test -d ~/src/gpa-* && ( cd ~/src/gpa-* ; make uninstall )
su
rm -f /usr/local/bin/gpa
test -d /usr/local/share/gpa && rm -r /usr/local/share/gpa
exit
find ~/src -maxdepth 1 -type d -name "gpa-*" -exec rm -r {} \;
rm -f ~/installed/gpa-*.tar.*