app=popt
version=1.16
build=1sml
homepage="https://github.com/rpm-software-management/popt"
download="http://rpm5.org/files/popt/popt-$version.tar.gz"
desc="Command line parsing library"
requires="musl"

build() {
  
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-static \
    $builddist

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
b9b5ec15e2040a0d5c1d5c5dc69be245be55a9884bfd656fc097e9a30772cefdcd3d7c5fe2bf01010de8907c0b6ce235c65591dafc0bbf41d3da4bccd183c40c  popt-1.16.tar.lz
"
