# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-superior
pkgdesc="Samsung Galaxy Premier"
pkgver=0.1
pkgrel=5
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-samsung-superior mkbootimg"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="
	deviceinfo
	modules-load.conf
"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi firmware"
	depends="firmware-samsung-superior"
	mkdir "$subpkgdir"
}

sha512sums="
c64055aae2b2154b1a4bca02a1711fd58ee54e70bba61664fa2de4073f04f6bd8ea994cdb544e12d5fdc0aa35c1af2ce28663a298e7ac0a08d28e1380528ad36  deviceinfo
761387a44a2280589336a69b24a24bc33e81aebc441f4033ffd992820edee6b386cc817d7b8519cbf52467a56180ec6b9a88929ee54e73f01217107ef206cab4  modules-load.conf
"