diff options
author | BienChen | 2021-04-23 14:55:42 +0800 |
---|---|---|
committer | BienChen | 2021-04-23 14:55:42 +0800 |
commit | 54625802d8797f89e2eac21df1c37f0a7b91c077 (patch) | |
tree | 63af5bc23d75aebef325b4b317d0d093378efa25 | |
parent | ea5de2cd646b74be0a3dd1656bbf70f5fc91ced6 (diff) | |
download | aur-54625802d8797f89e2eac21df1c37f0a7b91c077.tar.gz |
Add \!strip and symlink for binary files
-rw-r--r-- | PKGBUILD | 9 | ||||
-rw-r--r-- | gcc-nuclei-bin.install | 1 |
2 files changed, 8 insertions, 2 deletions
@@ -3,11 +3,12 @@ pkgname=gcc-nuclei-bin _pkgname=Nuclei-Toolchain pkgver=2020.08 -pkgrel=1 +pkgrel=2 pkgdesc='GNU Compiler Collection for RISC-V processor from Nuclei System Technology (official build).' arch=('x86_64') url='https://nucleisys.com/download.php' license=('GPL LGPL FDL custom') +options=('!strip') install="${pkgname}.install" source=("https://nucleisys.com/upload/files/toochain/gcc/nuclei_riscv_newlibc_prebuilt_linux64_${pkgver}.tar.bz2") sha256sums=('398c25b9385b8122d2e864bf71e47b1d871f6c326c21d0ae6d3afd2858f36041') @@ -21,4 +22,10 @@ prepare() { package() { mv "${srcdir}/opt" "${pkgdir}/" + install -dm755 "${pkgdir}/usr/bin" + cd "${pkgdir}/opt/${_pkgname}/gcc/bin" + for file in * + do + ln -s "/opt/${_pkgname}/gcc/bin/$file" "${pkgdir}/usr/bin/" + done } diff --git a/gcc-nuclei-bin.install b/gcc-nuclei-bin.install index 6be88bd6ea4d..70ebdb51f7d7 100644 --- a/gcc-nuclei-bin.install +++ b/gcc-nuclei-bin.install @@ -2,6 +2,5 @@ all_off="$(tput sgr0)" bold="${all_off}$(tput bold)" post_install() { echo "add ${bold}export NUCLEI_TOOL_ROOT=/opt/Nuclei-Toolchain${all_off}" - echo "and ${bold}export PATH=\$NUCLEI_TOOL_ROOT/gcc/bin:\$NUCLEI_TOOL_ROOT/openocd/bin:\$PATH${all_off}" echo "to ${bold}~/.bashrc${all_off} and ${bold}source ~/.bashrc${all_off} before compile any project." } |