Skip to content

Instantly share code, notes, and snippets.

@sehraf
Created April 18, 2022 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sehraf/7220544017f16cb50a5f7f9597f424e0 to your computer and use it in GitHub Desktop.
Save sehraf/7220544017f16cb50a5f7f9597f424e0 to your computer and use it in GitHub Desktop.
creates symlinks for riscv64 distcc
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