pkgname=libpipeline
pkgver=1.5.8
pkgdesc="a C library for manipulating pipelines of subprocesses in a flexible and convenient way"
arch=('x86_64')
homepage="https://nongnu.org/libpipeline/"
license=('GPL-3.0-or-later')
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://download.savannah.gnu.org/releases/${pkgname}/${sources[0]}")
md5sums=("17ac6969b2015386bcb5d278a08a40b5")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  ./configure --prefix=/usr
  make
}

src_check() {
  make check
}

src_install() {
  make DESTDIR="${pkgdir}" install
}
