[arch-commits] Commit in python-pyxbe/repos (community-any community-any/PKGBUILD)

Levente Polyak anthraxx at gemini.archlinux.org
Sat Aug 20 12:09:24 UTC 2022


    Date: Saturday, August 20, 2022 @ 12:09:23
  Author: anthraxx
Revision: 1271047

archrelease: copy trunk to community-any

Added:
  python-pyxbe/repos/community-any/
  python-pyxbe/repos/community-any/PKGBUILD
    (from rev 1271046, python-pyxbe/trunk/PKGBUILD)

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

Copied: python-pyxbe/repos/community-any/PKGBUILD (from rev 1271046, python-pyxbe/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-08-20 12:09:23 UTC (rev 1271047)
@@ -0,0 +1,36 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Letu Ren <fantasquex at gmail dot com>
+
+_pyname=pyxbe
+pkgname=python-${_pyname}
+pkgver=0.0.4
+pkgrel=2
+pkgdesc='Library to work with XBE files, the executable file format for the original Xbox game console'
+url='https://github.com/mborgerson/pyxbe'
+arch=('any')
+license=('custom:MIT')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
+checkdepends=('python-pytest')
+source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('7af85db80b6e52a6d746ae5e9d9ef15dfff073492cd13da2ae86991469ba364663a0cbe5f53417897012fc44f1401eb905066b14132406961333bdaf0c03e102')
+b2sums=('1854cb2f12beddff4976781ebfd163458c92562b5720dd13676af0e3b78533177a678eb525a9f6076c9088ba13643dfbb07079a89b5ad43fa5fae51831fe8c1e')
+
+build() {
+  cd ${_pyname}-${pkgver}
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd ${_pyname}-${pkgver}/tests
+  PYTHONPATH="${PWD}/../build/lib" pytest
+}
+
+package() {
+  cd ${_pyname}-${pkgver}
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list