Levente Polyak pushed to branch main at Arch Linux / Packaging / Packages / capstone
Commits: 17b771f6 by Levente Polyak at 2024-02-04T13:17:35+01:00 upgpkg: 5.0.1-2: use python-build for python package - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,13 +1,16 @@ pkgbase = capstone pkgdesc = Lightweight multi-platform, multi-architecture disassembly framework pkgver = 5.0.1 - pkgrel = 1 + pkgrel = 2 url = https://www.capstone-engine.org/index.html arch = x86_64 license = BSD makedepends = glibc makedepends = python + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel source = https://github.com/aquynh/capstone/archive/5.0.1/capstone-5.0.1.tar.gz sha512sums = 350aba77ce2d96b5c25764913591ba80e4497177ae0a8b2c820c6755ee8310848fbfc54e7ccac27fafc2dbc6778118ad92c53d1b5cb601d4fa146dec7d7e11e5 b2sums = 83f6681d4c9c748df00daf59f7b33637ab72eee661261c22acae40a6db2def70bb6b5339d731244fdbae6f1e1b0b5b22bb6f60c1390a1bebceb97b3f810aedb0 ===================================== PKGBUILD ===================================== @@ -2,22 +2,33 @@ # Contributor: M0Rf30 pkgbase=capstone -pkgname=('capstone' 'python-capstone') +pkgname=(capstone python-capstone) pkgver=5.0.1 -pkgrel=1 +pkgrel=2 pkgdesc='Lightweight multi-platform, multi-architecture disassembly framework' url='https://www.capstone-engine.org/index.html' arch=('x86_64') license=('BSD') -makedepends=('glibc' 'python' 'python-setuptools') +makedepends=( + glibc + python + python-build + python-installer + python-setuptools + python-wheel +) source=(https://github.com/aquynh/capstone/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) sha512sums=('350aba77ce2d96b5c25764913591ba80e4497177ae0a8b2c820c6755ee8310848fbfc54e7ccac27fafc2dbc6778118ad92c53d1b5cb601d4fa146dec7d7e11e5') b2sums=('83f6681d4c9c748df00daf59f7b33637ab72eee661261c22acae40a6db2def70bb6b5339d731244fdbae6f1e1b0b5b22bb6f60c1390a1bebceb97b3f810aedb0') build() { cd ${pkgbase}-${pkgver} + CFLAGS+=" ${CPPFLAGS} -ffat-lto-objects" make V=1 + + cd bindings/python + python -m build --wheel --no-isolation } check() { @@ -37,7 +48,7 @@ package_capstone() { package_python-capstone() { depends=('capstone' 'python') cd ${pkgbase}-${pkgver}/bindings/python - python setup.py install -O1 --root="${pkgdir}" --prefix=/usr + python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm 644 ../../LICENSE.TXT -t "${pkgdir}/usr/share/licenses/${pkgname}" } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/capstone/-/commit/17b771f66a7c4f87ee2f72f56fd3a98f5c149c60 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/capstone/-/commit/17b771f66a7c4f87ee2f72f56fd3a98f5c149c60 You're receiving this email because of your account on gitlab.archlinux.org.