Linux HOWTOs

About | Home | Search


HOWTO: libgnomeprintui
Description: The GUI part of the printing libraries for Gnome
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


# libgnomeprintui
# ===============
# Slackware 9.0's 'libgnomeprintui' package includes version 2.2.1.2, 9.1's
# includes 2.3.1, 10.0 and 10.1's include 2.6.1  As of Slackware 10.2, Gnome
# is no longer included.

# Below I include several different versions, each covering different
# releases of Gnome, but be aware that the only version that I actually use
# is the one for Gnome 2.16.x

# If you ever want to uninstall libgnomeprintui, cd into the source, run
# 'make uninstall' (as root), remove the source directory, and then the
# tarball.

# Prerequisites (for all versions):
# gettext
# pkg-config
# libgnomecanvas-2.0 >= 1.117.0
# libglade


# libgnomeprintui 2.8.2 (for Gnome 2.8.x)
# =====================
# Prerequisites (beyond those listed above):
# gtk-doc (Slackware includes this in it's sgml-tools or linuxdoc-tools
#  packages; enabled if you pass --enable-gtk-doc to configure)
# GTK+-2.0 >= 2.4.0
# libgnomeprint-2.2 >= 2.8.2
# gnome-icon-theme >= 1.1.92

cd
test -f installed/libgnomeprintui-2.8.2.tar.bz2 &&
 mv installed/libgnomeprintui-2.8.2.tar.bz2
test ! -f libgnomeprintui-2.8.2.tar.bz2 &&
 wget http://ftp.gnome.org/pub/gnome/sources/libgnomeprintui/2.8/\
libgnomeprintui-2.8.2.tar.bz2

# Verify tarball w/ md5sum:
echo "b38d1f6813dd52879ba4174ddc3f1b1c  libgnomeprintui-2.8.2.tar.bz2" \
 | md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libgnomeprintui-*" -exec rm -r {} \;
tar xjvf ~/libgnomeprintui-2.8.2.tar.bz2
cd libgnomeprintui-2.8.2
test $UID = 0 && chown -R root:root .

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib \
 --enable-static=no
make

# Become root to install it
su

test -x /sbin/removepkg && removepkg libgnomeprintui
rm -f /usr/lib/libgnomeprintui-2.* /usr/lib/libgnomeprintui-2-2.*
make install
ldconfig
find /usr/share/locale -type f -name "libgnomeprintui-2.2.mo" -exec rm {} \;

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libgnomeprintui-*.tar.*
mv libgnomeprintui-2.8.2.tar.bz2 installed/


# libgnomeprintui 2.10.2 (for Gnome 2.10.x)
# ======================
# Prerequisites (beyond those listed above):
# gtk-doc (Slackware includes this in it's sgml-tools or linuxdoc-tools
#  packages; enabled if you pass --enable-gtk-doc to configure)
# GTK+-2.0 >= 2.4.0
# libgnomeprint-2.2 >= 2.10.2
# gnome-icon-theme >= 1.1.92

cd
test -f installed/libgnomeprintui-2.10.2.tar.bz2 &&
 mv installed/libgnomeprintui-2.10.2.tar.bz2
test ! -f libgnomeprintui-2.10.2.tar.bz2 &&
 wget http://ftp.gnome.org/pub/gnome/sources/libgnomeprintui/2.10/\
libgnomeprintui-2.10.2.tar.bz2

# Verify tarball w/ md5sum:
echo "01fce7918f4e106e00ee8b5447783e4c  libgnomeprintui-2.10.2.tar.bz2" \
 | md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libgnomeprintui-*" -exec rm -r {} \;
tar xjvf ~/libgnomeprintui-2.10.2.tar.bz2
cd libgnomeprintui-2.10.2
test $UID = 0 && chown -R root:root .
chmod -R u+w .

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib \
 --enable-static=no
make

# Become root to install it
su

test -x /sbin/removepkg && removepkg libgnomeprintui
rm -f /usr/lib/libgnomeprintui-2.* /usr/lib/libgnomeprintui-2-2.*
make install
ldconfig
find /usr/share/locale -type f -name "libgnomeprintui-2.2.mo" -exec rm {} \;
chown -R $USER .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libgnomeprintui-*.tar.*
mv libgnomeprintui-2.10.2.tar.bz2 installed/


# libgnomeprint 2.12.1 (for Gnome 2.12.x, 2.14.x, or 2.16.x)
# ====================
# Prerequisites (beyond those listed above):
# gtk-doc (Slackware includes this in it's sgml-tools or linuxdoc-tools
#  packages; enabled if you pass --enable-gtk-doc to configure)
# GTK+-2.0 >= 2.6.0
# libgnomeprint-2.2 >= 2.12.1
# gnome-icon-theme >= 1.1.92

cd
test -f installed/libgnomeprintui-2.12.1.tar.bz2 &&
 mv installed/libgnomeprintui-2.12.1.tar.bz2
test ! -f libgnomeprintui-2.12.1.tar.bz2 &&
 wget http://ftp.gnome.org/pub/gnome/sources/libgnomeprintui/2.12/\
libgnomeprintui-2.12.1.tar.bz2

# Verify tarball w/ md5sum:
echo "fa0b0410c3ba8b6899c5ed278f02cbe5  libgnomeprintui-2.12.1.tar.bz2" \
 | md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libgnomeprintui-*" -exec rm -r {} \;
tar xjvf ~/libgnomeprintui-2.12.1.tar.bz2
cd libgnomeprintui-2.12.1
test $UID = 0 && chown -R root:root .
chmod -R u+w .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib \
 --enable-static=no
make

# Become root to install it
su

test -x /sbin/removepkg && removepkg libgnomeprintui
rm -f /usr/lib/libgnomeprintui-2.* /usr/lib/libgnomeprintui-2-2.*
make install
ldconfig
find /usr/share/locale -type f -name "libgnomeprintui-2.2.mo" -exec rm {} \;
chown -R $USER .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libgnomeprintui-*.tar.*
mv libgnomeprintui-2.12.1.tar.bz2 installed/

Back to the list


Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>