summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 7 insertions, 2 deletions
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}"
}