libpaper-2.2.8

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-1357

### Chapter 9. General Libraries

- Prev

  libnvme-1.16.2

- Next

  libportal-0.9.1

- Up
- Home

# libpaper-2.2.8

## Introduction to libpaper

This package is intended to provide a simple way for applications to take actions based on a system or user-specified paper size.

### Note

This package is known to build and work properly using an LFS 13.1 platform.

### Package Information

- Download (HTTP): https://github.com/rrthomas/libpaper/releases/download/v2.2.8/libpaper-2.2.8.tar.gz

- Download MD5 sum: 6ec14207927c291631062338e148bf27

- Download size: 1.3 MB

- Estimated disk space required: 12 MB (with tests)

- Estimated build time: 0.1 SBU (with tests)

## Installation of libpaper

Install libpaper by running the following commands:

    ./configure --prefix=/usr     \
                --sysconfdir=/etc \
                --disable-static  \
                --docdir=/usr/share/doc/libpaper-2.2.8 &&
    make

The test suite of this package does not work with a configuration using the standard installation location.

Now, as the `root` user:

    make install

## Command Explanations

`--disable-static`: This switch prevents installation of static versions of the libraries.

## Configuring libpaper

### Configuration Information

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`.

## Contents

Installed Programs: paper and paperconf
Installed Library: libpaper.so
Installed Directories: /usr/share/doc/libpaper-2.2.8

### Short Descriptions

paper | prints paper configuration information
paperconf | prints paper configuration information in a compatibility mode
`libpaper.so` | contains functions for interrogating the paper library

- Prev

  libnvme-1.16.2

- Next

  libportal-0.9.1

- Up
- Home