# Maintainer: Ben Westover pkgname=mtkclient pkgver=1.63 pkgrel=0 pkgdesc="Unofficial MTK reverse engineering and flash tool" url="https://github.com/bkerler/mtkclient" arch="noarch" license="GPL-3.0-only" depends=" android-udev-rules libusb py3-colorama py3-mock py3-pycryptodomex py3-pyserial py3-pyside6 py3-usb python3 " makedepends="py3-setuptools" options="!check" # No tests available subpackages="$pkgname-pyc" source=" $pkgname-$pkgver.tar.gz::https://github.com/bkerler/mtkclient/archive/refs/tags/$pkgver.tar.gz data.patch " build() { python3 setup.py build } package() { python3 setup.py install --skip-build --root="$pkgdir" install -Dm755 mtk_gui -t "$pkgdir"/usr/bin/ install -Dm644 Setup/Linux/51-edl.rules "$pkgdir"/usr/lib/udev/rules.d/52-edl.rules } sha512sums=" 1ed427a9e3f84643ef684fa3efe63bc815c8ec568610bb7158d7c7439ffb8463d63ed79b35f223e1cfff68148b5d4138fe932d7ced6bf7fa86194107792804c0 mtkclient-1.63.tar.gz f1a0059b9e48ca73cda1e3b327912f71b6fca1bc78f9f0252ac170ae81f82017fa7f64b58455fc8d5273ae68e4ccebde19550518b0ce9bed26b14486ac68cf09 data.patch "