# Maintainer: Andreas Radke <andyrtr@archlinux.org>

pkgname=libpipeline
pkgver=1.5.7
pkgrel=1
pkgdesc="a C library for manipulating pipelines of subprocesses in a flexible and convenient way"
arch=('x86_64')
url="https://nongnu.org/libpipeline/"
license=('GPL')
depends=('glibc')
# https://gitlab.com/cjwatson/libpipeline
source=(https://download.savannah.gnu.org/releases/libpipeline/$pkgname-$pkgver.tar.gz{,.asc})
sha256sums=('b8b45194989022a79ec1317f64a2a75b1551b2a55bea06f67704cb2a2e4690b0'
            'SKIP')
#validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson <cjwatson@debian.org>
#validpgpkeys=('87317259431038049C92C139F6DD330210FA4CD1') # "Colin Watson <cjwatson@flatline.org.uk>"
validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # "Colin Watson <cjwatson@chiark.greenend.org.uk>"

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

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

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