summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenzo Cappelletti2020-05-12 22:06:41 +0200
committerLorenzo Cappelletti2020-05-12 22:13:41 +0200
commit8d0ebf5f8f9a5b9ea042469cd4838f62a3172508 (patch)
tree17513e0f3e96860fd2c6ba105ba6ce1d9ae39b2b
parent0d864ecc6a54b0bc01f0eb5fec7b4325dfdfc720 (diff)
downloadaur-8d0ebf5f8f9a5b9ea042469cd4838f62a3172508.tar.gz
Add more packages from 'pacakges/'
-rw-r--r--.SRCINFO59
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD176
3 files changed, 211 insertions, 28 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2943ae52cfb..a83e177a7f3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,25 +1,74 @@
pkgbase = python-mbed-os-tools
pkgdesc = The tools to test and work with Mbed OS
pkgver = 0.0.13
- pkgrel = 1
+ pkgrel = 2
url = https://developer.mbed.org
arch = any
license = Apache
makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = python-mbed-os-tools-0.0.13.tar.gz::https://github.com/ARMmbed/mbed-os-tools/archive/v0.0.13.tar.gz
+ sha256sums = a50772dfe1a3862897cb668452b846844a29a8c59503ddb3e95bcd59dab41e09
+
+pkgname = python-mbed-os-tools
depends = python
depends = python-pyserial
depends = python-requests
depends = python-intelhex
+ depends = python-future
depends = python-prettytable
depends = python-fasteners
depends = python-appdirs
+ depends = python-junit-xml
depends = python-lockfile
depends = python-six
depends = python-colorama
depends = python-beautifulsoup4
- options = !emptydirs
- source = https://github.com/ARMmbed/mbed-os-tools/archive/0.0.13.tar.gz
- md5sums = 9e4631a643313964ab21c5aab7f71c81
-pkgname = python-mbed-os-tools
+pkgname = python-mbed-ls
+ depends = python
+ depends = python-prettytable
+ depends = python-mbed-os-tools
+ conflicts = python2-mbed-ls
+
+pkgname = python-mbed-host-tests
+ depends = python
+ depends = python-mbed-os-tools
+ conflicts = python2-mbed-host-tests
+
+pkgname = python-mbed-greentea
+ depends = python
+ depends = python-mbed-os-tools
+ conflicts = python2-mbed-greentea
+
+pkgname = python2-mbed-os-tools
+ depends = python2
+ depends = python2-pyserial
+ depends = python2-requests
+ depends = python2-intelhex
+ depends = python2-future
+ depends = python2-prettytable
+ depends = python2-fasteners
+ depends = python2-appdirs
+ depends = python2-junit-xml
+ depends = python2-lockfile
+ depends = python2-six
+ depends = python2-colorama
+ depends = python2-beautifulsoup4
+
+pkgname = python2-mbed-ls
+ depends = python
+ depends = python-prettytable
+ depends = python-mbed-os-tools
+ conflicts = python-mbed-ls
+
+pkgname = python2-mbed-host-tests
+ depends = python
+ depends = python-mbed-os-tools
+ conflicts = python-mbed-host-tests
+
+pkgname = python2-mbed-greentea
+ depends = python
+ depends = python-mbed-os-tools
+ conflicts = python-mbed-greentea
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..57fa220ae7d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/pkg/
+/src/
+/*.tar.*
+/*.zip
diff --git a/PKGBUILD b/PKGBUILD
index bfea58e7072..c074d24ce89 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,35 +1,165 @@
# Maintainer: Lorenzo Cappelletti <lorenzo.cappelletti gmail.com>
-_pyname=mbed-os-tools
-pkgname=python-${_pyname}
+pkgname=(
+ 'python-mbed-os-tools'
+ 'python-mbed-ls'
+ 'python-mbed-host-tests'
+ 'python-mbed-greentea'
+
+ 'python2-mbed-os-tools'
+ 'python2-mbed-ls'
+ 'python2-mbed-host-tests'
+ 'python2-mbed-greentea'
+)
pkgver=0.0.13
-pkgrel=1
+pkgrel=2
pkgdesc="The tools to test and work with Mbed OS"
arch=('any')
url="https://developer.mbed.org"
license=('Apache')
-depends=(
- 'python'
- 'python-pyserial'
- 'python-requests'
- 'python-intelhex'
- 'python-prettytable'
- 'python-fasteners'
- 'python-appdirs'
- 'python-junit-xml'
- 'python-lockfile'
- 'python-six'
- 'python-colorama'
- 'python-beautifulsoup4'
-)
-makedepends=('python-setuptools')
-options=(!emptydirs)
-source=("https://github.com/ARMmbed/mbed-os-tools/archive/$pkgver.tar.gz")
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("python-mbed-os-tools-${pkgver}.tar.gz::https://github.com/ARMmbed/mbed-os-tools/archive/v${pkgver}.tar.gz")
sha256sums=('a50772dfe1a3862897cb668452b846844a29a8c59503ddb3e95bcd59dab41e09')
-package() {
- cd "$srcdir/${_pyname}-${pkgver}"
- python setup.py install --root="$pkgdir/" --optimize=1
+_remove_test() {
+ # Why are tests installed?
+ rm -rf "${pkgdir}"/usr/lib/python*/site-packages/test/
+ sed -e '/^test$/d' --in-place\
+ "${pkgdir}"/usr/lib/python*/site-packages/*.egg-info/top_level.txt
+}
+
+### mbed-os-tools ###########################################################
+
+package_python-mbed-os-tools() {
+ depends=(
+ 'python'
+ 'python-pyserial'
+ 'python-requests'
+ 'python-intelhex'
+ 'python-future'
+ 'python-prettytable'
+ 'python-fasteners'
+ 'python-appdirs'
+ 'python-junit-xml'
+ 'python-lockfile'
+ 'python-six'
+ 'python-colorama'
+ 'python-beautifulsoup4'
+ )
+
+ cd "mbed-os-tools-${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+ _remove_test
+ python setup.py clean --all
+}
+
+package_python2-mbed-os-tools() {
+ depends=(
+ 'python2'
+ 'python2-pyserial'
+ 'python2-requests'
+ 'python2-intelhex'
+ 'python2-future'
+ 'python2-prettytable'
+ 'python2-fasteners'
+ 'python2-appdirs'
+ 'python2-junit-xml'
+ 'python2-lockfile'
+ 'python2-six'
+ 'python2-colorama'
+ 'python2-beautifulsoup4'
+ )
+
+ cd "mbed-os-tools-${pkgver}"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+ _remove_test
+ python2 setup.py clean --all
+}
+
+### mbed-ls #################################################################
+
+package_python-mbed-ls() {
+ conflicts=('python2-mbed-ls')
+ depends=(
+ 'python'
+ 'python-prettytable'
+ 'python-mbed-os-tools'
+ )
+
+ cd "mbed-os-tools-${pkgver}/packages/mbed-ls"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+ _remove_test
+ python setup.py clean --all
+}
+
+package_python2-mbed-ls() {
+ conflicts=('python-mbed-ls')
+ depends=(
+ 'python'
+ 'python-prettytable'
+ 'python-mbed-os-tools'
+ )
+
+ cd "mbed-os-tools-${pkgver}/packages/mbed-ls"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+ _remove_test
+ python2 setup.py clean --all
+}
+
+### mbed-host-tests #########################################################
+
+package_python-mbed-host-tests() {
+ conflicts=('python2-mbed-host-tests')
+ depends=(
+ 'python'
+ 'python-mbed-os-tools'
+ )
+
+ cd "mbed-os-tools-${pkgver}/packages/mbed-host-tests"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+ _remove_test
+ python setup.py clean --all
+}
+
+package_python2-mbed-host-tests() {
+ conflicts=('python-mbed-host-tests')
+ depends=(
+ 'python'
+ 'python-mbed-os-tools'
+ )
+
+ cd "mbed-os-tools-${pkgver}/packages/mbed-host-tests"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+ _remove_test
+ python2 setup.py clean --all
+}
+
+### mbed-greentea ###########################################################
+
+package_python-mbed-greentea() {
+ conflicts=('python2-mbed-greentea')
+ depends=(
+ 'python'
+ 'python-mbed-os-tools'
+ )
+
+ cd "mbed-os-tools-${pkgver}/packages/mbed-greentea"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+ _remove_test
+ python setup.py clean --all
+}
+
+package_python2-mbed-greentea() {
+ conflicts=('python-mbed-greentea')
+ depends=(
+ 'python'
+ 'python-mbed-os-tools'
+ )
+
+ cd "mbed-os-tools-${pkgver}/packages/mbed-greentea"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+ _remove_test
+ python2 setup.py clean --all
}
# vim:set ts=2 sw=2 et: