8.81. Libpipeline-1.5.8

The Libpipeline package contains a library for manipulating pipelines of subprocesses in a flexible and convenient way.

Approximate build time: 0.1 SBU
Required disk space: 11 MB

8.81.1. Installation of Libpipeline

Create the PKGBUILD for the Libpipeline package with the following commands:

mkdir /sources/libpipeline
cd /sources/libpipeline
cat > PKGBUILD << "REALEOF"
# Maintainer: Linux From Scratch <lfs-dev@lists.linuxfromscratch.org>

pkgname="libpipeline"
pkgver="1.5.8"
pkgrel="1"
pkgdesc="The Libpipeline package contains a library for manipulating pipelines of subprocesses in a flexible and convenient way."
arch=('x86'
      'x86_64')
url="https://libpipeline.nongnu.org/"
license=('GPLv3')
groups=('core')
depends=('glibc'
         'rootfs')
makedepends=('bash'
             'binutils'
             'coreutils'
             'diffutils'
             'gawk'
             'gcc'
             'grep'
             'make'
             'sed'
             'texinfo')
checkdepends=('check')
source=('https://download.savannah.gnu.org/releases/libpipeline/libpipeline-1.5.8.tar.gz')
md5sums=('17ac6969b2015386bcb5d278a08a40b5')
 
build(){
  cd "${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make
}

check(){
  cd "${pkgname}-${pkgver}"
  make check
}

package(){
  cd "${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
REALEOF

Prepare the build directory for the pacman user and build the package:

chown -R root:pacman .
chmod 2775 .
chmod 664 PKGBUILD
su pacman -c 'makepkg -L --nodeps'

Add the newly created package to the central package repository:

cp libpipeline-1.5.8-1-$(uname -m).pkg.tar.xz \
   /srv/pacman/repos/LFS/
repo-add /srv/pacman/repos/LFS/LFS.db.tar.xz \
         /srv/pacman/repos/LFS/libpipeline-1.5.8-1-$(uname -m).pkg.tar.xz

Update the local cache and install the Libpipeline package:

pacman -Syu
pacman -S libpipeline --overwrite \* -dd --noconfirm

Finally, copy the source files into the source repository and clean up the build directory:

mkdir /srv/pacman/source/LFS/libpipeline
cp PKGBUILD /srv/pacman/source/LFS/libpipeline
cd /sources
rm -rf libpipeline

8.81.2. Contents of Libpipeline

Installed library: libpipeline.so

Short Descriptions

libpipeline

This library is used to safely construct pipelines between subprocesses