cd
test -f installed/scribus-1.2.3.tar.bz2 &&
mv installed/scribus-1.2.3.tar.bz2 .
test ! -f scribus-1.2.3.tar.bz2 &&
wget http://www.scribus.org.uk/downloads/1.2.3/scribus-1.2.3.tar.bz2
# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "ced1e74d4be30482b48bd04d52e47d46 scribus-1.2.3.tar.bz2" | md5sum -c
# Verify tarball w/ sha1sum:
# (this also came from my gpg-verified tarball)
echo "7a81f998ec0a9cccbb7c157e6ddca080f7edca86 scribus-1.2.3.tar.bz2" | \
sha1sum -c
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "scribus-*" -exec rm -r {} \;
tar xjvf ~/scribus-1.2.3.tar.bz2
cd scribus-1.2.3
test $UID = 0 && chown -R root:root .
./configure
## If make fails with an error like this:
# /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:
# cannot find -lssl
## re-run it like this:
# make LDFLAGS=-L/usr/local/ssl/lib
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/scribus-*.tar.*
mv scribus-1.2.3.tar.bz2 installed/
# /usr/local/share/scribus/icons/scribusicon.png can be used as a desktop
# icon