# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-serranolte
pkgdesc="Samsung Galaxy S4 Mini"
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-samsung-serranolte mkbootimg"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
makedepends="devicepkg-dev"
source="deviceinfo kernel-cmdline.conf"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Firmware for Modem and WiFi"
	# Non-firmware packages placed here, because they aren't useful without firmware
	depends="firmware-samsung-serranolte-modem firmware-samsung-serranolte-wlan msm-modem-downstream"
	mkdir "$subpkgdir"
}

sha512sums="
2afbead2e97c92397b8fbb1cd911ed0b692f796d12021bbbf80f23f81c534521eab3329641c3af4ce073144f8950dd97d6c0fe342d9e7bb014ef16ddaa82daf8  deviceinfo
3a86044834cb830188114e5faf15d93b8db1a3ea3034266bdab6af213401342d1f5751d23f42096770232afd6a7010b1516f3de3722ad5b9cae05599d837cf2b  kernel-cmdline.conf
"
