summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortaotieren2021-07-27 17:56:41 +0800
committertaotieren2021-07-27 17:56:41 +0800
commitba2a299626de051d0fd828151e484281103349e9 (patch)
treecde099f2e7c5f8e48be5d7d7278c253827e83877
parentf34ecbc20f3ad321c827a44d06ea8577d274d313 (diff)
downloadaur-openocdcfg-generator.tar.gz
Update PKGBUILD
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 8 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0443c2e4a13..6a59be601c3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = openocdcfg-generator
pkgdesc = This is a python tool based on pydevicetree (GitHub/PyPI) which generates OpenOCD Configuration Files for Freedom Metal applications.
pkgver = 20.08.00.00
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/sifive/openocdcfg-generator
arch = any
license = Apache
diff --git a/PKGBUILD b/PKGBUILD
index b378be555f4..79f8e29988f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=openocdcfg-generator
pkgver=20.08.00.00
-pkgrel=1
+pkgrel=2
epoch=
pkgdesc="This is a python tool based on pydevicetree (GitHub/PyPI) which generates OpenOCD Configuration Files for Freedom Metal applications."
arch=('any')
@@ -26,6 +26,11 @@ sha256sums=('a348e9688502b88ede43c8a40b0d8a29d52620482361b2c7c0d4106b3d91a50c')
#validpgpkeys=()
package() {
- install -Dm0755 "${srcdir}/${pkgname}-${pkgver}/generate_openocdcfg.py" "${pkgdir}/usr/bin/${pkgname}"
+ install -dm0755 "${pkgdir}/usr/share/sifive/${pkgname}" \
+ "${pkgdir}/usr/bin"
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ cp -r `ls -d */` "${pkgdir}/usr/share/sifive/${pkgname}"
+ cp -r generate_openocdcfg.py "${pkgdir}/usr/share/sifive/${pkgname}"
+ ln -sf "/usr/share/sifive/${pkgname}/generate_openocdcfg.py" "${pkgdir}/usr/bin/${pkgname}"
}