# Reference: <https://postmarketos.org/devicepkg>
# Co-Maintainer: Alexander Martinz <amartinz@shiftphones.com>
maintainer="Casey Connolly <kcxt@postmarketos.org>"
pkgname=firmware-shift-otter
pkgver=20260306
pkgrel=0
pkgdesc="Firmware for SHIFTphone 8"
url="https://github.com/SomeBlobs/firmware-shift-otter"
arch="aarch64"
license="proprietary"
makedepends="bash pil-squasher"
options="!check !strip !archcheck !tracedeps pmb:cross-native"
_commit="9d23f5494b7054f3ff8db441511b2d1a540f6cce"
source="https://github.com/SomeBlobs/firmware-shift-otter/archive/$_commit/firmware-shift-otter-$_commit.tar.gz"
builddir="$srcdir/firmware-shift-otter-$_commit"

build() {
	make prepare
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
d4bf10e3d7c55ea9d35a4882391dbb6eda120cabfd2c3528e583447357f0b5fac55c5e9901b1e4410370e4e3c6e6d8b71744b41fb2df5e7288201a1bf429cafb  firmware-shift-otter-9d23f5494b7054f3ff8db441511b2d1a540f6cce.tar.gz
"
