blob: 5711cc1082262d4e7f9749d6dc470656d007983a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Gaƫl PORTAY <gael.portay@gmail.com>
pkgname=riscv64-lp64d-musl-bleeding-edge-toolchain
pkgver=2024.05
pkgrel=1
pkgdesc="Ready-to-use cross-compilation toolchain provided by bootlin.com"
arch=("x86_64")
url="https://toolchains.bootlin.com/"
license=("GPL")
source=("https://toolchains.bootlin.com/downloads/releases/toolchains/riscv64-lp64d/tarballs/riscv64-lp64d--musl--bleeding-edge-2024.05-1.tar.xz"
"profile.sh-riscv64-lp64d-musl-bleeding-edge-toolchain")
install="hooks.install-riscv64-lp64d-musl-bleeding-edge-toolchain"
sha256sums=('0acc030f695f48e29f03f25294ee5b6ebacc8ab93de5ed0c6988e9699c417510'
'40b88111144cf9d3db70be65a3ef1f8e4812d93ff7f68a42492a26fe1e234119')
build() {
cd "riscv64-lp64d--musl--bleeding-edge-2024.05-1"
sh relocate-sdk.sh "/opt/riscv64-lp64d-musl-bleeding-edge"
}
package() {
options=(!strip)
cd "riscv64-lp64d--musl--bleeding-edge-2024.05-1"
mkdir -p "$pkgdir/opt/riscv64-lp64d-musl-bleeding-edge/"
cp -a * "$pkgdir/opt/riscv64-lp64d-musl-bleeding-edge/"
rm -f "$pkgdir/opt/riscv64-lp64d-musl-bleeding-edge/{buildroot.config,relocate-sdk.sh,summary.csv,share/buildroot/sdk-location}"
mkdir -p "$pkgdir/etc/profile.d/"
install -m0644 "$srcdir/profile.sh-riscv64-lp64d-musl-bleeding-edge-toolchain" "$pkgdir/etc/profile.d/riscv64-lp64d-musl-bleeding-edge-toolchain.sh"
}
|