Created
April 10, 2022 18:11
-
-
Save sehraf/a4729925bc028b88d9a8b6e0982e6964 to your computer and use it in GitHub Desktop.
PKGBUILD for riscv distccd support (symlinks)
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