# Reference: <https://postmarketos.org/devicepkg>
maintainer="Duje Mihanović <duje.mihanovic@skole.hr>"
pkgname=device-samsung-coreprimevelte
pkgdesc="Samsung Galaxy Core Prime VE LTE"
pkgver=8
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="dtc
	linux-samsung-coreprimevelte
	u-boot-coreprimevelte
	postmarketos-base
	mkbootimg
	u-boot-tools
	pxa-mkbootimg"
makedepends="devicepkg-dev"
_pmb_recommends="firmware-samsung-pxa1908"
source="
	boot-image.its
	deviceinfo
	modules-initfs
	90-mlan-to-wlan.rules
"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname

	install -Dm644 "$srcdir"/90-mlan-to-wlan.rules \
		-t "$pkgdir"/usr/lib/udev/rules.d

	mkdir -p "$pkgdir"/usr/share/u-boot/coreprimevelte/
	install -Dm644 "$srcdir"/boot-image.its \
		-t "$pkgdir"/usr/share/u-boot/coreprimevelte/
}

sha512sums="
fd8183975ed524f5f04f45abadd58bf7cccda5672262dcb733a180f1a9b3edbab1abda3e849f2c0a7a8d593ac804b9b07952955f7c8af8bad1263015ab02c242  boot-image.its
452485d2da3802b0a8557f951c94085c31f5ba5bb67a6c446080cd3735766d75cfbaa4f54c4396d0ba7919717f79130e953b047223de2b7d37cbfb5badbc3e3e  deviceinfo
b1617e4b116d60abb15003c5bf7d4e8fa13e57a4a12feadd1e128946238b0922e98810289690f0466fec39f54adcc9ef08346acdef0f5a0fbb62c68438c3a063  modules-initfs
d51facbaa99f69964786e770dc8ed500bfb2609353a25aa344701c851131cc421ef3a2663fe4422a21a5f38e01f0c34235fa4fad75739fb614109a2fb268db8a  90-mlan-to-wlan.rules
"
