[arch-commits] Commit in python-pyliblo/repos/community-x86_64 (PKGBUILD PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Mon Sep 20 20:54:55 UTC 2021


    Date: Monday, September 20, 2021 @ 20:54:55
  Author: dvzrv
Revision: 1019739

archrelease: copy trunk to community-x86_64

Added:
  python-pyliblo/repos/community-x86_64/PKGBUILD
    (from rev 1019738, python-pyliblo/trunk/PKGBUILD)
Deleted:
  python-pyliblo/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   75 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 38 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-20 20:54:47 UTC (rev 1019738)
+++ PKGBUILD	2021-09-20 20:54:55 UTC (rev 1019739)
@@ -1,37 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-# Contributor: Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
-# Contributor: SpepS <dreamspepser at yahoo dot it>
-
-_name=pyliblo
-pkgname=python-pyliblo
-pkgver=0.10.0
-pkgrel=7
-pkgdesc='Python wrapper for the liblo OSC library'
-arch=('x86_64')
-url="http://das.nasophon.de/pyliblo/"
-license=('LGPL2.1')
-depends=('python' 'liblo')
-makedepends=('cython')
-source=("http://das.nasophon.de/download/${_name}-${pkgver}.tar.gz")
-sha512sums=('d2a3d47f6c52d310104256d33fbd5d652ae6bc8cde32c2d3b2f3f407b8a4aba99028e57cd466804d266f63468a6c792760f28a43dbabcfa3330e0a852ee4d4e3')
-
-build() {
-  cd "${_name}-${pkgver}"
-  python setup.py build
-}
-
-check() {
-  cd "${_name}-${pkgver}"
-  python setup.py test
-}
-
-package_python-pyliblo() {
-  cd "${_name}-${pkgver}"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}/"
-  # docs
-  install -vDm 644 {NEWS,README} \
-    -t "${pkgdir}/usr/share/doc/${pkgname}"
-}

Copied: python-pyliblo/repos/community-x86_64/PKGBUILD (from rev 1019738, python-pyliblo/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-09-20 20:54:55 UTC (rev 1019739)
@@ -0,0 +1,38 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+
+_name=pyliblo
+pkgname=python-pyliblo
+pkgver=0.10.0
+pkgrel=8
+pkgdesc='Python wrapper for the liblo OSC library'
+arch=('x86_64')
+url="http://das.nasophon.de/pyliblo/"
+license=('LGPL2.1')
+depends=('python' 'liblo')
+makedepends=('cython' 'python-setuptools')
+checkdepends=('python-pytest')
+source=("${_name}-${pkgver}.tar.gz::https://github.com/dsacre/pyliblo/archive/refs/tags/${pkgver}.tar.gz")
+sha512sums=('c475ddfea9abf9e155deed12ab01ff2e585a6ed2946fac8d5017f36e3aee84b294f21cf5d0dd79098a4bd2f7911beed791bed67124cec3fc4bbd5087d42b4eed')
+b2sums=('dc14ab1dd64cdff5946d0e05a871c7cc75be89e8a57b12302cbee3bbeab1e9e1cfedce493fd4dbb6a4ba5a095a8539a4d4b7c9fe04431cf8376812b01bf78001')
+
+build() {
+  cd "${_name}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  local _pyver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+  cd "${_name}-${pkgver}"
+  export PYTHONPATH="build/lib.linux-${CARCH}-${_pyver}/:${PYTHONPATH}"
+  pytest -v
+}
+
+package_python-pyliblo() {
+  cd "${_name}-${pkgver}"
+  python setup.py install --optimize=1 --root="${pkgdir}/"
+  # docs
+  install -vDm 644 {NEWS,README} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list