summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenzo Cappelletti2021-04-02 22:22:14 +0200
committerLorenzo Cappelletti2021-04-02 22:35:07 +0200
commit4ba9b38a3078f5d72e11ba8009d88f241ecd72e5 (patch)
tree56de8f2dea3de3cac6e83308833e65466622679d
parent47381d7575d4435e6312494073482595aa136da7 (diff)
downloadaur-4ba9b38a3078f5d72e11ba8009d88f241ecd72e5.tar.gz
Drop support to Python2
A few dependency packages are no longer available for Python2 (notably pyserial).
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD49
2 files changed, 20 insertions, 44 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 33b1c025622..f1aa4e06fd1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,25 +1,18 @@
pkgbase = python-mbed-flasher
pkgdesc = mbed device flasher application
pkgver = 0.10.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/ARMmbed/mbed-flasher
arch = any
license = Apache
makedepends = python-setuptools
- makedepends = python2-setuptools
- source = python-mbed-flasher-0.10.1.tar.gz::https://github.com/ARMmbed/mbed-flasher/archive/v0.10.1.tar.gz
- sha256sums = 5f31a63d47ad82c8a5168e1fe2cea5214ca121bdc2fad504947d894e704a01c6
-
-pkgname = python-mbed-flasher
depends = python
depends = python-pyserial
depends = python-mbed-ls
depends = python-six
optdepends = pyocd: for boards using PyOCD
+ source = -0.10.1.tar.gz::https://github.com/ARMmbed/mbed-flasher/archive/v0.10.1.tar.gz
+ sha256sums = 5f31a63d47ad82c8a5168e1fe2cea5214ca121bdc2fad504947d894e704a01c6
-pkgname = python2-mbed-flasher
- depends = python2
- depends = python2-pyserial
- depends = python2-mbed-ls
- depends = python2-six
+pkgname = python-mbed-flasher
diff --git a/PKGBUILD b/PKGBUILD
index fdcd9be772f..f237310ffe7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,48 +1,31 @@
# Maintainer: Lorenzo Cappelletti <lorenzo.cappelletti gmail.com>
-pkgbase=python-mbed-flasher
-pkgname=('python-mbed-flasher' 'python2-mbed-flasher')
+pkgname=python-mbed-flasher
pkgver=0.10.1
-pkgrel=1
+pkgrel=2
pkgdesc='mbed device flasher application'
arch=('any')
url='https://github.com/ARMmbed/mbed-flasher'
license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=("${pkgbase}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+makedepends=('python-setuptools')
+depends=(
+ 'python'
+ # dependecies found via
+ # 'pip install mbed-flasher; pip show mbed-flasher'
+ 'python-pyserial'
+ 'python-mbed-ls'
+ 'python-six'
+)
+optdepends=(
+ 'pyocd: for boards using PyOCD' # flashers/FlasherPyOCD.py
+)
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('5f31a63d47ad82c8a5168e1fe2cea5214ca121bdc2fad504947d894e704a01c6')
-package_python-mbed-flasher() {
- depends=(
- 'python'
- # dependecies found via
- # 'pip install mbed-flasher; pip show mbed-flasher'
- 'python-pyserial'
- 'python-mbed-ls'
- 'python-six'
- )
- optdepends=(
- 'pyocd: for boards using PyOCD' # flashers/FlasherPyOCD.py
- )
-
+package() {
cd "mbed-flasher-${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1
python setup.py clean --all
}
-package_python2-mbed-flasher() {
- depends=(
- 'python2'
- # dependecies found via
- # 'pip install mbed-flasher; pip show mbed-flasher'
- 'python2-pyserial'
- 'python2-mbed-ls'
- 'python2-six'
- )
-
- cd "mbed-flasher-${pkgver}"
- python2 setup.py install --root="${pkgdir}/" --optimize=1
- python2 setup.py clean --all
-}
-
# vim:set ts=2 sw=2 et: