Created
April 18, 2022 21:10
-
-
Save sehraf/7220544017f16cb50a5f7f9597f424e0 to your computer and use it in GitHub Desktop.
creates symlinks for riscv64 distcc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=distccd-riscv64 | |
pkgver=1 | |
pkgrel=0 | |
pkgdesc='Provides sym-links for distccd' | |
arch=('any') | |
license=('MIT') | |
source=() | |
sha256sums=() | |
depends=('distcc' 'riscv64-linux-gnu-gcc') | |
package() { | |
install -d "${pkgdir}/usr/lib/distcc" | |
install -d "${pkgdir}/usr/bin" | |
for bin in c++ cpp g++ gcc; do # clang clang++ cc | |
# install whitelist for toolchain | |
ln -sf /usr/bin/distcc "${pkgdir}/usr/lib/distcc/riscv64-unknown-linux-gnu-$bin" | |
# link binaries | |
ln -sf "/usr/bin/riscv64-linux-gnu-$bin" "${pkgdir}/usr/bin/riscv64-unknown-linux-gnu-$bin" | |
done | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment