pmaports/device/testing/device-odroid-hc2/APKBUILD

54 lines
1.3 KiB
Text
Raw Normal View History

# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Dylan Van Assche <me@dylanvanassche.be>
pkgname=device-odroid-hc2
pkgdesc="ODROID HC2"
pkgver=0.2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="linux-odroid-hc2
networkmanager
postmarketos-base
u-boot-odroid
u-boot-tools
"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
_commit="42ac93dcfbbb8a08c2bdc02e19f96eb35a81891a"
install="$pkgname.post-install $pkgname.post-upgrade"
source="deviceinfo uboot-script.cmd"
build() {
devicepkg_build $startdir $pkgname
mkimage \
-A arm \
-O linux \
-T script \
-C none \
-a 0 \
-e 0 \
-n postmarketos \
-d "$srcdir"/uboot-script.cmd \
"$srcdir"/boot.scr
}
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/boot.scr \
"$pkgdir"/boot/boot.scr
}
nonfree_firmware() {
pkgdesc="U-Boot and Realtek firmware, required for a bootable system"
depends="firmware-odroid-hc2 linux-firmware-rtl_nic"
mkdir "$subpkgdir"
}
sha512sums="
90afdace4ad938ed69747d3b51ac1678bc325cb4e7234ac4eeded7b6fa79f10bd88d15ebfc6f20f0a9252c48008288a489cb99751ae6d2cdb12f289b9154a9f3 deviceinfo
83a4bcc34d20c2e5e6f1c3412c291baa90a8137df7925c02d8e46d922d45615cc957d79d37a23982bed7e1cfa92f2be22fa5f11cc59d3706b79ba62a2d550263 uboot-script.cmd
"