APP=libmtp
VERSION=1.1.17
BUILD=1sml
HOMEPAGE='https://github.com/libmtp/libmtp'
DESC="library for communicating with MTP devices"
REQUIRES="libgpg-error libgcrypt eudev libusb"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-static \
    --with-udev=/lib/udev

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
d2f14b28713b43fb49f9b1e744a38ead2d98b31a060cefc3e49ab3b08521cbdd3edf5952e24b07f5b18c0cea50e2bb2f2cc17b531dda71c7e687d9f389de940e  libmtp-1.1.17.tar.lz
"
