# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libusb
version=1.0.23
build=1sml
homepage="https://github.com/libusb/libusb"
download="https://github.com/libusb/libusb/releases/download/v$version/libusb-$version.tar.bz2"
desc="Library for userspace applications to access USB subsystem and devices"
requires="eudev"

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

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

build() {
  ./configure \
    --prefix="" \
    --disable-static

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

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