[arch-commits] Commit in python-fxa/trunk (PKGBUILD)

Balló György bgyorgy at archlinux.org
Thu Mar 7 00:01:34 UTC 2019


    Date: Thursday, March 7, 2019 @ 00:01:33
  Author: bgyorgy
Revision: 437961

upgpkg: python-fxa 0.6.0-3

Drop python2

Modified:
  python-fxa/trunk/PKGBUILD

----------+
 PKGBUILD |   38 ++++++++------------------------------
 1 file changed, 8 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-06 23:59:50 UTC (rev 437960)
+++ PKGBUILD	2019-03-07 00:01:33 UTC (rev 437961)
@@ -1,46 +1,24 @@
 # 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')
+_pkgname=PyFxA
+pkgname=python-fxa
 pkgver=0.6.0
-pkgrel=2
+pkgrel=3
 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")
+depends=('python-browserid' 'python-cryptography' 'python-hawkauthlib')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mozilla/$_pkgname/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
+  cd $_pkgname-$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 
+package() {
+  cd $_pkgname-$pkgver 
   python3 setup.py install --root="$pkgdir" --optimize=1
 }


More information about the arch-commits mailing list