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

Felix Yan felixonmars at archlinux.org
Tue Nov 10 04:17:42 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:17:42
  Author: felixonmars
Revision: 748623

archrelease: copy trunk to community-staging-x86_64

Added:
  python-rencode/repos/community-staging-x86_64/
  python-rencode/repos/community-staging-x86_64/PKGBUILD
    (from rev 748621, python-rencode/trunk/PKGBUILD)

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

Copied: python-rencode/repos/community-staging-x86_64/PKGBUILD (from rev 748621, python-rencode/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-10 04:17:42 UTC (rev 748623)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgname=python-rencode
+pkgver=1.0.6
+pkgrel=4
+pkgdesc="A Module similar to bencode from the BitTorrent project"
+url="https://github.com/aresch/rencode"
+license=('GPL')
+arch=('x86_64')
+depends=('python')
+makedepends=('cython')
+checkdepends=('python-pytest')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/aresch/rencode/archive/v$pkgver.tar.gz")
+sha512sums=('f04de4d3a83aed916bdc4b7a8ca772655e9324d0531ee882cb7d2a1e92b397bdcec8497bf02939e0a806886ecc62ed2e7319dfee054dad1b69052157f0959e8f')
+
+build() {
+  cd "$srcdir"/rencode-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/rencode-$pkgver
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.9" py.test
+}
+
+package() {
+  cd rencode-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list