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

Evangelos Foutras foutrelis at archlinux.org
Mon Jul 23 16:06:05 UTC 2018


    Date: Monday, July 23, 2018 @ 16:06:05
  Author: foutrelis
Revision: 363104

archrelease: copy trunk to community-staging-any

Added:
  python-fxa/repos/community-staging-any/
  python-fxa/repos/community-staging-any/PKGBUILD
    (from rev 363103, python-fxa/trunk/PKGBUILD)

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

Copied: python-fxa/repos/community-staging-any/PKGBUILD (from rev 363103, python-fxa/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-23 16:06:05 UTC (rev 363104)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: twa022 <twa022 at gmail dot com>
+
+_pkgbase=PyFxA
+pkgbase=python-fxa
+pkgname=('python2-fxa' 'python-fxa')
+pkgver=0.6.0
+pkgrel=2
+pkgdesc="Python library for interacting with the Firefox Accounts ecosystem"
+arch=('any')
+url="https://github.com/mozilla/PyFxA"
+license=('MPL2')
+depends=('python-browserid' 'python2-browserid' 'python-cryptography' 'python2-cryptography' 'python-hawkauthlib' 'python2-hawkauthlib')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/mozilla/$_pkgbase/archive/v$pkgver.tar.gz")
+sha256sums=('f2732fe443d18a86a782d7b40894fc3a712497bfe225f309498b2b2e7657f753')
+
+prepare() {
+  cp -a $_pkgbase-$pkgver{,-py2}
+  cd $_pkgbase-$pkgver-py2
+  sed -i 's@^#!.*python$@#!/usr/bin/python2@' fxa/__main__.py
+}
+
+build() {
+  # Building Python2
+  cd $_pkgbase-$pkgver-py2
+  python2 setup.py build
+
+  # Building Python3
+  cd ../$_pkgbase-$pkgver
+  python3 setup.py build
+}
+
+package_python2-fxa() {
+  depends=('python2-browserid' 'python2-cryptography' 'python2-hawkauthlib')
+
+  cd $_pkgbase-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  mv "$pkgdir"/usr/bin/fxa-client{,2}
+}
+
+package_python-fxa() {
+  depends=('python-browserid' 'python-cryptography' 'python-hawkauthlib')
+
+  cd $_pkgbase-$pkgver 
+  python3 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list