#### Beyond Linux® From Scratch (systemd Edition) - Version 11.1

### Chapter 9. General Libraries

- Prev

  libpaper-1.1.24+nmu5

- Next

  libptytty-2.0

- Up
- Home

# libportal-0.5

## Introduction to libportal

The libportal package provides a library that contains GIO-style async APIs for most Flatpak portals.

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

### Package Information

- Download (HTTP): https://github.com/flatpak/libportal/releases/download/0.5/libportal-0.5.tar.xz

- Download MD5 sum: b61ded325c1d681a23705a0bc2ef8d6d

- Download size: 60 KB

- Estimated disk space required: 2.3 MB

- Estimated build time: 0.1 SBU

### libportal Dependencies

#### Required

gobject-introspection-1.70.0

#### Recommended

GTK+-3.24.31, GTK-4.6.1, and Qt-5.15.2

#### Optional

Vala-0.54.7 and gi-docgen

User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/libportal

## Installation of libportal

### Warning

If a previous version of libportal is installed, move the headers out of the way so that later packages do not encounter conflicts:

    if [ -e /usr/include/libportal ]; then
        rm -rf /usr/include/libportal.old &&
        mv -vf /usr/include/libportal{,.old}
    fi

Install libportal by running the following commands:

    mkdir build &&
    cd    build &&

    meson --prefix=/usr --buildtype=release -Ddocs=false .. &&
    ninja

This package does not come with a test suite.

Now, as the `root` user:

    ninja install

## Command Explanations

`--buildtype=release`: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

`-Ddocs=false`: Remove this parameter if gi-docgen is installed and you wish to rebuild and install the API documentation.

## Contents

Installed Programs: None
Installed Libraries: libportal.so, libportal-gtk3.so, libportal-gtk4.so, and libportal-qt5.so
Installed Directories: /usr/include/libportal and /usr/share/gtk-doc/html/libportal

### Short Descriptions

`libportal.so` | provides GIO-style async APIs for most Flatpak portals
`libportal-gtk3.so` | provides GTK+-3 specific functions for interacting with Flatpak portals.
`libportal-gtk4.so` | provides GTK-4 specific functions for interacting with Flatpak portals.
`libportal-qt5.so` | provides Qt5 specific functions for interacting with Flatpak portals.

Last updated on

- Prev

  libpaper-1.1.24+nmu5

- Next

  libptytty-2.0

- Up
- Home