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

Levente Polyak anthraxx at gemini.archlinux.org
Sat Aug 20 13:13:08 UTC 2022


    Date: Saturday, August 20, 2022 @ 13:13:07
  Author: anthraxx
Revision: 1271061

archrelease: copy trunk to community-any

Added:
  python-arpy/repos/community-any/
  python-arpy/repos/community-any/PKGBUILD
    (from rev 1271060, python-arpy/trunk/PKGBUILD)

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

Copied: python-arpy/repos/community-any/PKGBUILD (from rev 1271060, python-arpy/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-08-20 13:13:07 UTC (rev 1271061)
@@ -0,0 +1,41 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Rafael Fontenelle <rafaelff at gnome.org>
+
+_pyname=arpy
+pkgname=python-${_pyname}
+pkgver=2.3.0
+pkgrel=2
+pkgdesc='Library for accessing ar files'
+url='https://github.com/viraptor/arpy'
+arch=('any')
+license=('custom:BSD')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
+checkdepends=('python-pytest')
+source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('7479d713df8da3d18fe477c7ae585f476bd1b278ac7a2bb11f9834071148178f17f8a18db3189f6f946f2f3f8f444bf5239c2c01d631d1a575e86b7556d3e835')
+b2sums=('0c22127a8221e02df4814ff23ad13e43968553e4b8a8544a9ed826b57261f1b20bd35212202d02454f3cbfcb3d3ceaac092abb0c0a1b67481f0930d191a5e202')
+
+prepare() {
+  cd ${_pyname}-${pkgver}
+  head -n30 arpy.py > LICENSE
+}
+
+build() {
+  cd ${_pyname}-${pkgver}
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd ${_pyname}-${pkgver}
+  PYTHONPATH=build/lib pytest
+}
+
+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