# Reference: <https://postmarketos.org/devicepkg>
maintainer="Rudraksha Gupta <guptarud@gmail.com>"
pkgname=device-samsung-expressatt
pkgdesc="Samsung Galaxy Express SGH-I437"
pkgver=6
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base mkbootimg linux-firmware-none"
makedepends="devicepkg-dev"
subpackages="
	$pkgname-kernel-next:kernel_next
	$pkgname-kernel-stable:kernel_stable
	$pkgname-kernel-lts:kernel_lts
"
source="deviceinfo kernel-cmdline.conf"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

kernel_next() {
	pkgdesc="Unstable next kernel (linux-next)"
	depends="linux-next"
	devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}

kernel_stable() {
	pkgdesc="Stable kernel from Alpine Linux (linux-stable)"
	depends="linux-stable"
	provides="$pkgname-kernel-edge=$pkgver-r$pkgrel"
	devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}

kernel_lts() {
	pkgdesc="Long term support (LTS) kernel from Alpine Linux (linux-lts)"
	depends="linux-lts"
	devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}

sha512sums="
7847d27def33bac03c92813da0e98c71f159139ad7b4e3d072ffd5ea56953b5c6cb55657809c18f10a77f99c10d01eeb56554ccc892a8bb9ed99d0d366070b86  deviceinfo
9800dab94aecbb3ad4f40ba81e8e3cf2886fd824661b334fcf098d4578d009a1533c9082e8809c8995f5f9994df3c1c4bf72c215da01c6eacea2d4210713d413  kernel-cmdline.conf
"
