summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Westover2022-06-06 17:35:35 -0400
committerBen Westover2022-06-06 17:35:35 -0400
commit93eec56e9442ed3b79c6e216724c2fa0e840b1dc (patch)
tree175d29f11fc27f1c9d63e044d4773679ddc9c7b7
parente5e9bcbc74db79eb74940f242939fbe060a4ba39 (diff)
downloadaur-93eec56e9442ed3b79c6e216724c2fa0e840b1dc.tar.gz
Add post-install instructions
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD3
-rw-r--r--mtkclient.install3
3 files changed, 7 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8c64ef4e7937..016566f20156 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,12 +3,14 @@ pkgbase = mtkclient
pkgver = 1.52
pkgrel = 1
url = https://github.com/bkerler/mtkclient
+ install = mtkclient.install
arch = any
license = GPL
makedepends = python-build
makedepends = python-installer
makedepends = python-wheel
makedepends = python-setuptools
+ depends = libusb
depends = python
depends = python-pyusb
depends = python-pycryptodome
diff --git a/PKGBUILD b/PKGBUILD
index 9224aee49408..48e09d9a4105 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,8 +7,9 @@ pkgdesc="Unofficial MTK reverse engineering and flash tool"
arch=('any')
url="https://github.com/bkerler/mtkclient"
license=('GPL')
-depends=('python' 'python-pyusb' 'python-pycryptodome' 'python-colorama')
+depends=('libusb' 'python' 'python-pyusb' 'python-pycryptodome' 'python-colorama')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
+install=mtkclient.install
source=("https://github.com/bkerler/mtkclient/archive/refs/tags/$pkgver.tar.gz"
"usb.patch")
sha256sums=('5a9363cdcb65392ed4dd19f8442d73f0560d2195b67e790abcee7d7ea34e9ff2'
diff --git a/mtkclient.install b/mtkclient.install
new file mode 100644
index 000000000000..3a302d07ff7c
--- /dev/null
+++ b/mtkclient.install
@@ -0,0 +1,3 @@
+post_install() {
+ echo -e "\033[1;32m==>\033[0m \033[1mInstall the correct udev rules with the instructions at \e[4mhttps://github.com/bkerler/mtkclient#install-rules"
+}