[arch-commits] Commit in (4 files)

Levente Polyak anthraxx at gemini.archlinux.org
Fri Aug 19 21:45:00 UTC 2022


    Date: Friday, August 19, 2022 @ 21:45:00
  Author: anthraxx
Revision: 1270997

addpkg: python-archinfo 9.2.14-1

Added:
  python-archinfo/
  python-archinfo/repos/
  python-archinfo/trunk/
  python-archinfo/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Added: python-archinfo/trunk/PKGBUILD
===================================================================
--- python-archinfo/trunk/PKGBUILD	                        (rev 0)
+++ python-archinfo/trunk/PKGBUILD	2022-08-19 21:45:00 UTC (rev 1270997)
@@ -0,0 +1,35 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pyname=archinfo
+pkgname=python-${_pyname}
+pkgver=9.2.14
+pkgrel=1
+pkgdesc='Classes with architecture-specific information useful to other projects'
+url='https://github.com/angr/archinfo'
+arch=('any')
+license=('custom:BSD2')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
+optdepends=(
+  'python-capstone'
+  'python-unicorn'
+  'python-keystone'
+  'python-pyvex'
+)
+source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('c7c0e1fb310cda5dea271b414b964f32da3d8799f45c0314d1f6f92a966548ec503b07045e59265220ea0a1a0afbd0e25ade646dc17471b0bedb040280a12428')
+b2sums=('2f92cea08dce498777f561e410b3e1619e83dcf3fb4a127ae6cff742d5740bd4477da244813a866fb52b42e2a21cbcd198b1516f0c0f785bcbc076627e40ca6d')
+
+build() {
+  cd "${_pyname}-${pkgver}"
+  python -m build --wheel --no-isolation
+}
+
+package() {
+  cd "${_pyname}-${pkgver}"
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list