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

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="WiFi/BT firmware"
	depends="firmware-samsung-u8500"
	mkdir "$subpkgdir"
}


sha512sums="
3bf2ac6837879a006bf1379696d0804fe6d8c02e4ec67d5576a3902fb448dc73d9cd343f5d3ba270fe0bca9e2e901361a89fc8e1a3b7543dfa46fa6224823ce6  deviceinfo
447fd07a0896a72af0cf69708be98f92311ac9b5c1c75ae8a131bf55be3f2d6a82bedc9b2373bc2589a09b1049ad22f8eff7d6cb012e1759df11e83fada01eb2  kernel-cmdline.conf
"
