[arch-commits] Commit in python-u-msgpack/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:23:59 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:23:59
  Author: felixonmars
Revision: 1058196

archrelease: copy trunk to community-staging-any

Added:
  python-u-msgpack/repos/community-staging-any/
  python-u-msgpack/repos/community-staging-any/PKGBUILD
    (from rev 1058194, python-u-msgpack/trunk/PKGBUILD)

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

Copied: python-u-msgpack/repos/community-staging-any/PKGBUILD (from rev 1058194, python-u-msgpack/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:23:59 UTC (rev 1058196)
@@ -0,0 +1,35 @@
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=u-msgpack-python
+pkgname='python-u-msgpack'
+pkgver=2.7.1
+pkgrel=4
+arch=('any')
+url="https://github.com/vsergeev/${_pkgname}"
+license=('MIT')
+pkgdesc="portable, lightweight MessagePack serializer and deserializer for Python"
+depends=('python')
+makedepends=('python')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('b7e7d433cab77171a4c752875d91836f3040306bab5063fb6dbe11f64ea69551')
+b2sums=('10008f0653f969f1f5655c894be5b2497d692bf7ebf6d50de221695cab9c3a973c0870a8162efe6b61f2d9d4fb062c4130c07cddff8d64d6258d7d832efe4021')
+
+build() {
+    cd ${_pkgname}-${pkgver}
+
+    python setup.py build
+}
+
+check() {
+    cd ${_pkgname}-${pkgver}
+
+    pytest
+}
+
+package() {
+    cd ${_pkgname}-${pkgver}
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+
+    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list