[arch-commits] Commit in mvt/trunk (PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Fri May 13 19:27:41 UTC 2022


    Date: Friday, May 13, 2022 @ 19:27:41
  Author: alerque
Revision: 1203010

upgpkg: mvt 1.5.4-2; use pep517 python build routines

Modified:
  mvt/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-13 19:24:55 UTC (rev 1203009)
+++ PKGBUILD	2022-05-13 19:27:41 UTC (rev 1203010)
@@ -4,34 +4,29 @@
 
 pkgname=mvt
 pkgver=1.5.4
-pkgrel=1
+pkgrel=2
 pkgdesc="Mobile Verification Toolkit, a forensics tool looking for signs of device compromise"
 arch=(any)
 url="https://github.com/mvt-project/mvt"
 license=(custom:MVT)
 depends=('libusb' 'python' 'python-adb-shell' 'python-click' 'python-iosbackup' 'python-libusb1' 'python-packaging' 'python-rich' 'python-tld' 'python-tqdm' 'python-requests' 'python-simplejson')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
 source=("mvt-${pkgver}.tar.gz::https://github.com/mvt-project/mvt/archive/refs/tags/v${pkgver}.tar.gz")
 sha512sums=('bfad2d7bb98d3acf15f5932a7f5bd37747bdd244af8730a2b2d901eb181aefdbc2183cb1f947ad61ef13ff51363c29bb5a0d0204f5010d4523d3c1f3d89eb9e7')
 b2sums=('32aa0507c08062d04bfc0e5a5338980cd175a35f075ebe9a7ff8e4aeab605f7280ba753583dd556d18f2f87e097eea63e8f9d980a165357d079fa40743f20a6d')
 
-prepare() {
-  cd "mvt-${pkgver}"
-  sed -i 's/packaging>=21.0/packaging>=20.9/' setup.py
-}
-
 build() {
   cd "mvt-${pkgver}"
-  python setup.py build
+  python -m build -wn
 }
 
 package() {
   cd "mvt-${pkgver}"
-  python setup.py install -O1 --root="$pkgdir" --skip-build
+  python -m installer -d "${pkgdir}" dist/*.whl
   install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
   install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
   local _py3_ver=$(python --version | cut -d " " -f2)
-  rm -rf "$pkgdir/usr/lib/python${_py3_ver%"."*}/site-packages/tests"
+  rm -rf "$pkgdir/usr/lib/python${_py3_ver%.*}/site-packages/tests"
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list