APP=pv
VERSION=1.6.6
BUILD=1sml
HOMEPAGE='http://www.ivarch.com/programs/pv.shtml'
DOWNLOAD='http://www.ivarch.com/programs/sources/pv-1.6.6.tar.bz2'
DESC="pipe Viewer for monitoring progress of data through pipeline"
REQUIRES="musl"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION 
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc 

  make
  make install DESTDIR=$PKG 

  cp doc/COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
3642ae4c2e743bc3d037e86afadf4ebecf60afa3662f071ec123e3278402be7a40c34783f86b7bbf3f59f5ab10269ebd32c498ae12698d56556d7aa2f41387be  pv-1.6.6.tar.gz
"
