Date: Thursday, April 6, 2023 @ 12:34:23
Author: felixonmars
Revision: 1438675
archrelease: copy trunk to community-staging-any
Added:
python-archinfo/repos/community-staging-any/
python-archinfo/repos/community-staging-any/PKGBUILD
(from rev 1438673, python-archinfo/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-archinfo/repos/community-staging-any/PKGBUILD (from rev 1438673,
python-archinfo/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 12:34:23 UTC (rev 1438675)
@@ -0,0 +1,35 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pyname=archinfo
+pkgname=python-${_pyname}
+pkgver=9.2.27
+pkgrel=2
+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=('97f90c23cc9c3074bd5bbd9f222f7f687569156b8c5c83884af7a8e396f8f3c6223c186b87eb27f72e9851b0097dbc055cabcfdc259382f07b2a946e5a1d6c99')
+b2sums=('fa75601d5c08b0d1648b352c0be97f2576af09cdb31b7d362877d948a071df51166176958769900cb718f2bc57cac1dc0d76d8663bf6a4efb5fdbfb025ccfefc')
+
+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: