# Reference: <https://postmarketos.org/devicepkg>
pkgname="device-motorola-harpia"
pkgdesc="Motorola Moto G4 Play"
pkgver=0.1
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="postmarketos-base linux-motorola-harpia mkbootimg mesa-dri-swrast msm-fb-refresher"
makedepends="devicepkg-dev"
source="
    deviceinfo
    initfs-hook.sh
"


build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
        install -D -m644 "$srcdir"/initfs-hook.sh \
            "$pkgdir"/etc/postmarketos-mkinitfs/hooks/00-${pkgname}.sh
}

sha512sums="6008cc900a0ee49169ea405add7fb589367905b0f58306750e227739f79dabf9b6dd46b457c8991e6114dda76e8039ac86dfbbce6810e657de7663ac53a73263  deviceinfo
17dabb0190a9191173454ac12c5c8ad8744b922d20807bd9465bc26d485c0f2d34e968d40b8e886a32640f0c36635cde083c4dc7e4122b55c3cff1f9d1b34af6  initfs-hook.sh"
