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

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="
2fd91fdb47b46fc4e7e5f088bd5f83329c86b3806535ac5cd078a81daec1cf26b9811ed78afc9f3b143301bcb109d1736eba62cb7058846f9091e507a2ad9d3f  deviceinfo
"
