This package is intended to provide a simple way for applications to take actions based on a system or user-specified paper size.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://github.com/rrthomas/libpaper/releases/download/v2.1.0/libpaper-2.1.0.tar.gz
Download MD5 sum: c9136c0d483b868818637ec54200c975
Download size: 1.2 MB
Estimated disk space required: 11 MB (with tests)
Estimated build time: 0.1 SBU (with tests)
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/libpaper
Install libpaper by running the following commands:
./configure --prefix=/usr \ --sysconfdir=/etc \ --disable-static \ --enable-relocatable \ --docdir=/usr/share/doc/libpaper-2.1.0 && make
To test the results, issue: make check.
Now, as the root
user:
make install
--disable-static
: This
switch prevents installation of static versions of the libraries.
--enable-relocatable
: This option is
needed to run the tests.
The paper size is automatically determined from the system
locale; see LC_PAPER
in locale(7)
. If you want to override it, create a
papersize
file in the user
configuration directory. For example:
mkdir -pv ~/.config && echo "a4" > ~/.config/papersize
If you want to override the paper size globally (for all users),
set up the PAPERSIZE
environment
variable. For example:
echo "PAPERSIZE=a4" > /etc/profile.d/libpaper.sh
You may use a different paper size, such as “letter
”.