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

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

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


sha512sums="
2775419d65c776cfee872833d521f04c04367489b81cde6d55fbc2c38bb9682f61e7c8f362605c2a5f79222c57ff76e2a1b88e68f90e1e24675cabbd68ca7e5d  deviceinfo
223035445c1f9e30229d5543c55d6a090edbcdd694a30653308ad66bdec32f48d984b09c0e89b9df3fb70e113eb8c797400347850c58706d8838735e97f7df85  kernel-cmdline.conf
"
