APP=popt
VERSION=1.16
BUILD=1sml
HOMEPAGE='https://github.com/rpm-software-management/popt'
DOWNLOAD='http://rpm5.org/files/popt/popt-1.16.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
"
