# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=simple-mtpfs
pkgver=0.4.0
pkgrel=1
pkgdesc="filesystem driver and CLI utility for MTP based devices"
url="https://github.com/phatina/simple-mtpfs"
arch="all"
license="GPL-2.0-only"
makedepends="autoconf-archive automake libmtp-dev libusb-dev fuse-dev"
options="!check"  # No test suite.
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/phatina/simple-mtpfs/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}
build() {
	./configure --prefix=/usr
	make
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="6f213f9df792f33cd3842357aecf444cdc8030c89e4abc19b56a2c60f58213b5545b3d7857b0d46cdd237d0c24d5d6eb3cbe59ba9fc3c32f91396c5724ac86d7  simple-mtpfs-0.4.0.tar.gz"
