[arch-commits] Commit in python-pyelftools/repos/extra-any (PKGBUILD PKGBUILD)

Levente Polyak anthraxx at gemini.archlinux.org
Thu Aug 18 19:48:27 UTC 2022


    Date: Thursday, August 18, 2022 @ 19:48:27
  Author: anthraxx
Revision: 453427

archrelease: copy trunk to extra-any

Added:
  python-pyelftools/repos/extra-any/PKGBUILD
    (from rev 453426, python-pyelftools/trunk/PKGBUILD)
Deleted:
  python-pyelftools/repos/extra-any/PKGBUILD

----------+
 PKGBUILD |   84 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 42 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-18 19:48:21 UTC (rev 453426)
+++ PKGBUILD	2022-08-18 19:48:27 UTC (rev 453427)
@@ -1,42 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: Rémy Oudompheng <remy at archlinux.org>
-
-pkgname=python-pyelftools
-_pkgname=pyelftools
-pkgver=0.28
-pkgrel=1
-pkgdesc='Python library for analyzing ELF files and DWARF debugging information'
-url='https://github.com/eliben/pyelftools'
-arch=('any')
-license=('custom:Public Domain')
-makedepends=('python' 'python-setuptools')
-depends=('python')
-options=('!strip')
-source=(https://github.com/eliben/${_pkgname}/archive/v${pkgver}/${_pkgname}-${pkgver}.tar.gz)
-sha512sums=('005163a53fe12baad0998d60d531e3ce4201236b7b042e3c28d7e68f9c40586f94a2576be6918be991a3bf464f2ca55700c0475a6e8c7b05b4342a6f5bbf3354')
-b2sums=('87dad42d87b9d3de2382e21d6f7115fb24e420e262735d4bd73c4e3a325d10b69c6eab5d73ff999811633d6a024c22c15ad65be637339f0c609378d54926f747')
-
-
-build() {
-  cd ${_pkgname}-${pkgver}
-  python setup.py build
-}
-
-check() {
-  cd ${_pkgname}-${pkgver}
-  python test/run_all_unittests.py
-  python test/run_examples_test.py
-  if [ "${CARCH}" == "x86_64" ]; then
-    python test/run_readelf_tests.py
-  else
-    echo "Skipping readelf tests (require x86_64)"
-  fi
-}
-
-package() {
-  cd ${_pkgname}-${pkgver}
-  python setup.py install -O1 --root="${pkgdir}" --skip-build
-  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -Dm 644 README.rst CHANGES -t "${pkgdir}/usr/share/doc/${pkgname}"
-  cp -r examples "${pkgdir}/usr/share/doc/${pkgname}"
-}

Copied: python-pyelftools/repos/extra-any/PKGBUILD (from rev 453426, python-pyelftools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-18 19:48:27 UTC (rev 453427)
@@ -0,0 +1,42 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Rémy Oudompheng <remy at archlinux.org>
+
+pkgname=python-pyelftools
+_pkgname=pyelftools
+pkgver=0.29
+pkgrel=1
+pkgdesc='Python library for analyzing ELF files and DWARF debugging information'
+url='https://github.com/eliben/pyelftools'
+arch=('any')
+license=('custom:Public Domain')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
+options=('!strip')
+source=(https://github.com/eliben/${_pkgname}/archive/v${pkgver}/${_pkgname}-${pkgver}.tar.gz)
+sha512sums=('0eba3b029a734abe9f8df92cd58bc967f10bf9f61c3a419bdbc5e637200844dddd947bcb485e8ebbe2eeaa7f7e91efc6500316af51aace1db051a658cf61153e')
+b2sums=('441260492f8cd512445249700a79f1d823ef96f6213ab9183e17160b76efe51493c28d2ae8ecea79acf45e78987b4c24940441e9bc0a3deaeda0ee4fb72b58c3')
+
+
+build() {
+  cd ${_pkgname}-${pkgver}
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd ${_pkgname}-${pkgver}
+  python test/run_all_unittests.py
+  python test/run_examples_test.py
+  if [ "${CARCH}" == "x86_64" ]; then
+    python test/run_readelf_tests.py
+  else
+    echo "Skipping readelf tests (require x86_64)"
+  fi
+}
+
+package() {
+  cd ${_pkgname}-${pkgver}
+  python -m installer --destdir="${pkgdir}" dist/*.whl
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.rst CHANGES -t "${pkgdir}/usr/share/doc/${pkgname}"
+  cp -r examples "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list