Date: Sunday, April 9, 2023 @ 21:31:05
  Author: alex19ep
Revision: 1443543

archrelease: copy trunk to community-staging-any

Added:
  python-magic-wormhole-mailbox-server/repos/community-staging-any/
  
python-magic-wormhole-mailbox-server/repos/community-staging-any/00-no-universal-newlines-mode.patch
    (from rev 1443542, 
python-magic-wormhole-mailbox-server/trunk/00-no-universal-newlines-mode.patch)
  python-magic-wormhole-mailbox-server/repos/community-staging-any/PKGBUILD
    (from rev 1443542, python-magic-wormhole-mailbox-server/trunk/PKGBUILD)

-------------------------------------+
 00-no-universal-newlines-mode.patch |   13 ++++++++++
 PKGBUILD                            |   41 ++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

Copied: 
python-magic-wormhole-mailbox-server/repos/community-staging-any/00-no-universal-newlines-mode.patch
 (from rev 1443542, 
python-magic-wormhole-mailbox-server/trunk/00-no-universal-newlines-mode.patch)
===================================================================
--- community-staging-any/00-no-universal-newlines-mode.patch                   
        (rev 0)
+++ community-staging-any/00-no-universal-newlines-mode.patch   2023-04-09 
21:31:05 UTC (rev 1443543)
@@ -0,0 +1,13 @@
+diff --git a/setup.py b/setup.py
+index 6ef292f..332ad45 100644
+--- a/setup.py
++++ b/setup.py
+@@ -17,7 +17,7 @@ trove_classifiers = [
+ setup(name="magic-wormhole-mailbox-server",
+       version=versioneer.get_version(),
+       description="Securely transfer data between computers",
+-      long_description=open('README.md', 'rU').read(),
++      long_description=open('README.md').read(),
+       long_description_content_type='text/markdown',
+       author="Brian Warner",
+       author_email="[email protected]",

Copied: 
python-magic-wormhole-mailbox-server/repos/community-staging-any/PKGBUILD (from 
rev 1443542, python-magic-wormhole-mailbox-server/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-09 21:31:05 UTC (rev 1443543)
@@ -0,0 +1,41 @@
+# Maintainer: Alexander Epaneshnikov <[email protected]>
+# Contributor: Dian M Fay <[email protected]>
+
+pkgname=python-magic-wormhole-mailbox-server
+pkgver=0.4.1
+pkgrel=7
+pkgdesc="the rendezvous/mailbox server for magic-wormhole clients "
+arch=('any')
+url="https://github.com/magic-wormhole/magic-wormhole-mailbox-server";
+license=('MIT')
+depends=('python-twisted' 'python-autobahn')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-treq')
+source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/refs/tags/${pkgver}.tar.gz"
+        "00-no-universal-newlines-mode.patch")
+sha512sums=('d174d1bf901e7d21d7cb77ceffd6b9c7aa3c15433e11862365883d93437225c7c655b8338a5cad7bd5c60d7dd7d3dd017ef7e26213b535c043ce75000a540597'
+            
'a746512188e9e01e1b09a9a3436b70d99d5ce001e11d8058e78d5327f0e7c5eb7d013722012156489708bd9c1951756651795e688d18094e70b263f5460a689b')
+b2sums=('4bf6bc9fa6dacaafb532d9d0ee069bb89ba63feb790f0f9c0d1117b1de4f075eb9dd3bf5c72a9df472e9dedc31dcd9292dc1820da770738fd9d0d29cb3bcf68a'
+        
'324e1e08c883ef67740dff738c7891b610a79d8eb793b137e9d015ab7580c6b6564cdc09d959c17f1b5524cacabf0f4607fb838e614fc5d3974f7986e594c233')
+
+prepare() {
+       cd "${pkgname#python-}-$pkgver"
+       patch -Np1 -i ../00-no-universal-newlines-mode.patch
+}
+
+build() {
+       cd "${pkgname#python-}-$pkgver"
+       python setup.py build
+}
+
+check() {
+       cd "${pkgname#python-}-$pkgver"
+       python setup.py test
+}
+
+package() {
+       cd "${pkgname#python-}-$pkgver"
+       python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+       install -vDm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+       install -vDm 644 docs/*.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}

Reply via email to