diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 19 insertions, 5 deletions
@@ -1,26 +1,40 @@ # Maintainer: Kyle Manna <kyle[at]kylemanna[d0t]com> pkgname=pyocd _pkgname=pyOCD -pkgver=0.6.1 +pkgver=0.7.0 pkgrel=1 pkgdesc="Python On Chip Debugger and programmer for ARM Cortex-M microcontrollers using CMSIS-DAP" url="https://github.com/mbedmicro/pyocd" -depends=('python' 'python-pip' 'python-pyusb') +depends=('python2' 'python2-setuptools' 'python2-pyusb' 'python2-intelhex' 'python2-enum34') optdepends=() license=('Apache') arch=('any') # Sigh: Make sure you're not using GitHub's tarballs (or similar ones), as those don't contain the necessary metadata. Use PyPI's tarballs instead. #source=("https://github.com/mbedmicro/${pkgname}/archive/v${pkgver}.tar.gz") source=("https://pypi.python.org/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.zip") -sha512sums=('14c43faab48f822520693867a688a7370a90bc33b9751b48d5cdb00629c7742cf804c3ae5a57865af04cbce7aa80253ea0db73010cb0019cd9f7a4298978390a') +sha512sums=('61cf7bbc051ee34a2bbcc5a8faa0dd8f185a1916fa17fede97e0891e66c897ad6eb93820a827dc8c15df2f9f0df0b4aba2f76aae1f365d2a090d521d19ea7962') + +prepare() { + cd "$srcdir/$_pkgname-$pkgver" + + # Start to make it work with python3 :( since the deps for python2 libs are a bigger headache + #sed -i -e "s:, 'enum34'::" setup.py + #2to3 -w . + + # pyocd-gdbserver fails with: + # uncaught exception: Can't convert 'bytes' object to str implicitly + # Traceback (most recent call last): + # File "/usr/lib/python3.5/site-packages/pyOCD/tools/gdb_server.py", line 250, in run + +} build() { cd "$srcdir/$_pkgname-$pkgver" - python setup.py build + python2 setup.py build } package() { cd "$srcdir/$_pkgname-$pkgver" - python setup.py install --root="$pkgdir" --optimize=1 + python2 setup.py install --root="$pkgdir" --optimize=1 } |