
maintainer="Yassine Oudjana (Tooniis) <y.oudjana@protonmail.com>"
pkgname=mt6735-bootshim
pkgver=0.0.1
pkgrel=3
pkgdesc="MT6735 AArch64 boot shim"
url="https://gitlab.com/mt6735-mainline/bootshim/"
arch="noarch"
license="MIT"
makedepends="clang lld scons"
options="!check pmb:cross-native"

_commit="169b57cdf2ccbbe79dbca290b8ff789d0ca4e9b9"
source="
	bootshim-$_commit.tar.gz::$url/-/archive/$_commit/bootshim-$_commit.tar.gz
	0001-Use-LLD-to-link.patch
"
builddir="$srcdir/bootshim-$_commit"

build() {
	scons
}

package() {
	mkdir -p "$pkgdir"/boot

	install -Dm644 "$builddir/bootshim" \
		"$pkgdir/boot/bootshim"
}
sha512sums="
ddb35ec7b387b275ea62ad275742dfa5b5514544788b9a5aaa9bd10241f52f253f1c789d1fd7da739ac6ca39eb0a306fc9509324b4d494263beabd877d2d7aa0  bootshim-169b57cdf2ccbbe79dbca290b8ff789d0ca4e9b9.tar.gz
1786b9b3bfd3bac4356101448a5639acbbc9ec8a86116c6ad5ca20a736db9cc3c9239ea3637fefb13edecc7bfb55b24ad97dab14037cbecad1986d63d231314c  0001-Use-LLD-to-link.patch
"
