# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-trekstor-surftabduow1
pkgdesc="Trekstor Surftab Duo W1"
pkgver=0.1
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="x86_64"
options="!check !archcheck"
depends="grub-x86 postmarketos-base linux-lts mesa-dri-gallium"
makedepends="devicepkg-dev"
source="deviceinfo grub.cfg"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
	mkdir -p "$pkgdir"/boot/grub/
	install -D -m644 "$srcdir"/grub.cfg \
		"$pkgdir"/boot/grub/grub.cfg
}

sha512sums="
2a8518429175f9c0a46a00d52a23af24c1d4e0f818f443dce6814df8c0e2485f18f4e4c7bfcea5f5593bc26055a3e9a9fb46bae327c6a4f3d0b99f885de47257  deviceinfo
13007aa683165b257cb9cc11112020d97debfa2a26746b1cdd805b7fdaabf072d4a743edd7553e02ec77f5802fd439f4e1ab22107a4aa26905ee70e400754b53  grub.cfg
"
