# Maintainer: Gaƫl PORTAY pkgname=mips32el-glibc-bleeding-edge-toolchain pkgver=2024.02 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/mips32el/tarballs/mips32el--glibc--bleeding-edge-2024.02-1.tar.bz2" "profile.sh-mips32el-glibc-bleeding-edge-toolchain") install="hooks.install-mips32el-glibc-bleeding-edge-toolchain" sha256sums=('6f3875119a362c76119fc75d52d191b4b9a7c23615a19aaa85ffae97c360fe14' '80373fb6b96f0549b719393c9538dd6549dc0adaeac2c7b7582dcec02c9ffbe4') build() { cd "mips32el--glibc--bleeding-edge-2024.02-1" sh relocate-sdk.sh "/opt/mips32el-glibc-bleeding-edge" } package() { options=(!strip) cd "mips32el--glibc--bleeding-edge-2024.02-1" mkdir -p "$pkgdir/opt/mips32el-glibc-bleeding-edge/" cp -a * "$pkgdir/opt/mips32el-glibc-bleeding-edge/" rm -f "$pkgdir/opt/mips32el-glibc-bleeding-edge/{buildroot.config,relocate-sdk.sh,summary.csv,share/buildroot/sdk-location}" mkdir -p "$pkgdir/etc/profile.d/" install -m0644 "$srcdir/profile.sh-mips32el-glibc-bleeding-edge-toolchain" "$pkgdir/etc/profile.d/mips32el-glibc-bleeding-edge-toolchain.sh" }