summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ab5e051c7eb2d8faacc8b700623c9bbf1f2bde2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Submitted by fenugrec 2018

_pkgbase='cmdebug'
pkgname="python-${_pkgbase}-git"
pkgver=r52.65e8b50
pkgrel=1
pkgdesc='Debug utilities for ARM Cortex-M microprocessors'
arch=('any')
url='https://github.com/posborne/cmsis-svd'
license=('GPL3')
depends=('python')
makedepends=('python-setuptools' 'python-lxml')
source=("${_pkgbase}::git+https://github.com/bnahill/PyCortexMDebug")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgbase}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${srcdir}/${_pkgbase}"
    python setup.py build
}

package() {
	cd "${srcdir}/${_pkgbase}"
    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}