summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6212493c67b08f35ffe1b24d1fc38c543abf1ac (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=aarch64be-musl-bleeding-edge-toolchain
pkgver=2023.11
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/aarch64be/tarballs/aarch64be--musl--bleeding-edge-2023.11-1.tar.bz2"
        "profile.sh-aarch64be-musl-bleeding-edge-toolchain")
install="hooks.install-aarch64be-musl-bleeding-edge-toolchain"
sha256sums=('c495eb4bf875934502e36005499bc28a47b3762b199dcfff57516ce70fe1c0a6'
            '942b6ff12b13c64748ce3d2b00829cc8649260b259c1efa06e4d6c6862a6661e')

build() {
	cd "aarch64be--musl--bleeding-edge-2023.11-1"

	sh relocate-sdk.sh "/opt/aarch64be-musl-bleeding-edge"
}

package() {
	options=(!strip)

	cd "aarch64be--musl--bleeding-edge-2023.11-1"

	mkdir -p "$pkgdir/opt/aarch64be-musl-bleeding-edge/"
	cp -a * "$pkgdir/opt/aarch64be-musl-bleeding-edge/"
	rm -f "$pkgdir/opt/aarch64be-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-aarch64be-musl-bleeding-edge-toolchain" "$pkgdir/etc/profile.d/aarch64be-musl-bleeding-edge-toolchain.sh"
}