diff options
author | kumencz | 2024-03-28 14:24:57 +0100 |
---|---|---|
committer | kumencz | 2024-03-28 14:24:57 +0100 |
commit | 9099f32e929d801b4e5523ec989e80934fdeb6ea (patch) | |
tree | ccbb572e7427634701a4bfadccb51ed35f4c0169 | |
parent | c8c2a8859a889acc731b6da726599cf282e15c44 (diff) | |
download | aur-9099f32e929d801b4e5523ec989e80934fdeb6ea.tar.gz |
Redirect library build directory to cache
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 7 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = embedded-studio-risc-v pkgdesc = Segger Embedded Studio for RISC-V pkgver = 7.32a - pkgrel = 1 + pkgrel = 2 url = https://www.segger.com/products/development-tools/embedded-studio/ arch = x86_64 arch = aarch64 @@ -2,7 +2,7 @@ pkgname="embedded-studio-risc-v" pkgver=7.32a -pkgrel=1 +pkgrel=2 pkgdesc="Segger Embedded Studio for RISC-V" arch=('x86_64' 'aarch64') makedepends=() @@ -43,7 +43,11 @@ package() { msg2 'Installing Embedded Studio RISC-V' "$srcdir"/embedded-studio-risc-v/install_segger_embedded_studio --copy-files-to ${pkgdir}/opt/SEGGER/Embedded-Studio-RISC-V/ --accept-license --no-upgrade - chmod 755 "${pkgdir}/opt/SEGGER/Embedded-Studio-RISC-V/lib" + + msg2 'Redirect library build directory to cache directory' + rmdir "${pkgdir}/opt/SEGGER/Embedded-Studio-RISC-V/lib" + install -dm 777 "${pkgdir}/var/cache/${pkgname}/lib/" + ln -s /var/cache/${pkgname}/lib "${pkgdir}/opt/SEGGER/Embedded-Studio-RISC-V/lib" msg2 'Instalation of binary file' ln -s /opt/SEGGER/Embedded-Studio-RISC-V/bin/emStudio "${pkgdir}/usr/bin/emStudio-RISC-V" |