APP=libusb
VERSION=1.0.23
BUILD=1sml
HOMEPAGE='https://github.com/libusb/libusb'
DOWNLOAD='https://github.com/libusb/libusb/releases/download/v1.0.23/libusb-1.0.23.tar.bz2'
DESC="Library for userspace applications to access USB subsystem and devices"
REQUIRES="eudev"

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

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

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

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
98aa486b7eaabd625eed51c4f4d03cc7215f5d3f353456fd6ebeba8e5dc1d0750a91626c76d6cb70c6c939daf168adbaaacba33b4da9863748620cafadd3540a  libusb-1.0.23.tar.lz
"
