makedepends=(libusb libgcrypt)

description="Library implementation of the Media Transfer Protocol."
url="http://libmtp.sourceforge.net"

packager="Great-OS Team"
maintainer="Great-OS Team"

name=libmtp
version=1.1.22
release=3

source=(http://downloads.sourceforge.net/$name/$name-$version.tar.gz)

build(){
    cd $name-$version
    ./configure --prefix=/usr \
                --disable-static \
                --with-udev=/usr/lib/udev

    make
    make -k check
    make DESTDIR=$PKG install

    # Obsolet lib
    rm $PKG/usr/lib/libmtp.la
}
