summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaspar Friedrich2021-03-04 09:49:22 +0100
committerCaspar Friedrich2021-03-04 09:49:22 +0100
commit9068be575c11250a1ddc69753a59c9d9d0287afe (patch)
tree374cfa9d6710a53502edad6fad35410b9462a3c1
downloadaur-9068be575c11250a1ddc69753a59c9d9d0287afe.tar.gz
v1.7.1
-rw-r--r--.SRCINFO13
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD25
3 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4f33e21f13b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = python-imgtool
+ pkgdesc = MCUboot's image signing and key management
+ pkgver = 1.7.1
+ pkgrel = 1
+ url = https://pypi.org/project/${_name}/
+ arch = any
+ license = Apache
+ depends = python>=3.6
+ source = https://files.pythonhosted.org/packages/source/i/imgtool/imgtool-1.7.1.tar.gz
+ sha256sums = 88c94036417653703bf6c7071d07316adf8386fcb517fafe672fd487217aabdd
+
+pkgname = python-imgtool
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..9f76536a4e0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+*.pkg.tar.xz
+*.pkg.tar.zst
+*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bae6e2e2d06
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Caspar Friedrich <c.s.w.friedrich@gmail.com>
+
+pkgname='python-imgtool'
+_name="imgtool"
+pkgdesc="MCUboot's image signing and key management"
+pkgver=1.7.1
+pkgrel=1
+arch=('any')
+url='https://pypi.org/project/${_name}/'
+license=('Apache')
+depends=('python>=3.6')
+#makedepends=()
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+
+build() {
+ cd ${srcdir}/${_name}-${pkgver}
+ python setup.py build
+}
+
+package() {
+ cd ${srcdir}/${_name}-${pkgver}
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+sha256sums=('88c94036417653703bf6c7071d07316adf8386fcb517fafe672fd487217aabdd')