pkgname=qcom_rmtfs
pkgver=0.2_git20190729
_commit="df6c19d0330d251af0a7c812bf5ddb847962ce2c"
pkgrel=4
pkgdesc="Qualcomm Remote Filesystem Service Implementation"
url="https://github.com/andersson/rmtfs"
arch="all"
license="BSD-3-Clause"
makedepends="eudev-dev qrtr-dev"
install="$pkgname.post-install"
subpackages="$pkgname-doc"
source="
	rmtfs-$_commit.tar.gz::https://github.com/andersson/rmtfs/archive/$_commit.tar.gz
	qcom_rmtfs.initd
	udev.rules
"
builddir="$srcdir/rmtfs-$_commit"
options="!check"

build() {
	make rmtfs
}

package() {
	install -Dm755 rmtfs "$pkgdir"/usr/sbin/"$pkgname"
	install -Dm755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
	install -Dm644 "$srcdir/udev.rules" "$pkgdir/usr/lib/udev/rules.d/65-qcom_rmtfs.rules"
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="16cdc2f1173246d1ef83f12aa1f14f5f2aba9e3cbf2c632353bd42b3d64888b1fe6a87df4d6c2d3648028195bfb359ede600162854d42905ca88b79ce5eae940  rmtfs-df6c19d0330d251af0a7c812bf5ddb847962ce2c.tar.gz
4db920dc26dde899d86627cec6c4a21db61884c764c7ee83ba5bc1a2102d918c6d318113e21a8621bad47c7c6948362987d2980a916ccf9829d10e340d1f40b9  qcom_rmtfs.initd
cb2435c159d81d3a40d30e1355c82a3d560dc2df7d05fee95085bc80e492ac93a728258f2f1b463c04a964979760990c8c9176b22cb585cbec19ab285cd45440  udev.rules"
