# Maintainer: PktSurf <smlinux@pktsurf.in>
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"

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

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

build() {
  ./configure \
    --prefix= \
    --disable-static \
    --with-udev=/lib/udev

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

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