Date: Friday, March 2, 2018 @ 17:52:13
  Author: felixonmars
Revision: 301442

archrelease: copy trunk to community-x86_64

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

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

Copied: python-rencode/repos/community-x86_64/PKGBUILD (from rev 301441, 
python-rencode/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2018-03-02 17:52:13 UTC (rev 301442)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keen...@gmail.com>
+
+pkgbase=python-rencode
+pkgname=(python-rencode python2-rencode)
+pkgver=1.0.5
+pkgrel=1
+pkgdesc="A Module similar to bencode from the BitTorrent project"
+url="https://github.com/aresch/rencode";
+license=('GPL')
+arch=('x86_64')
+makedepends=('cython' 'cython2')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/aresch/rencode/archive/v$pkgver.tar.gz";)
+sha512sums=('809d7070b746fe77419e7b4d2eed274e1e0b3b4f15bcddb466806478a90f89965b0b456443b390cce6d1ca9df409367f336dd659f4481cd442e3cc459bd63c18')
+
+prepare() {
+  cp -a rencode-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/rencode-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/rencode-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/rencode-$pkgver
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.6" py.test
+
+  cd "$srcdir"/rencode-$pkgver-py2
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7" py.test2
+}
+
+package_python-rencode() {
+  depends=('python')
+
+  cd rencode-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-rencode() {
+  depends=('python2')
+
+  cd rencode-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}

Reply via email to