summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfenugrec2018-04-28 23:36:19 -0400
committerfenugrec2018-04-28 23:36:19 -0400
commit3c57d28cb070b3288af82e158a1e02be1a1cee69 (patch)
treecc34317a0ac7af707cd284f8e171fa2b8c0b7eee
downloadaur-3c57d28cb070b3288af82e158a1e02be1a1cee69.tar.gz
initial commit. "works fine on my system" (TM)
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD29
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..95fc8b18069
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = python-cmdebug-git
+ pkgdesc = Debug utilities for ARM Cortex-M microprocessors
+ pkgver = r52.65e8b50
+ pkgrel = 1
+ url = https://github.com/posborne/cmsis-svd
+ arch = any
+ license = GPL3
+ makedepends = python-setuptools python-lxml
+ depends = python
+ source = cmdebug::git+https://github.com/bnahill/PyCortexMDebug
+ md5sums = SKIP
+
+pkgname = python-cmdebug-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9df2ea89f0d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}