Files
pmaports-rtwo/device/testing/soc-amlogic-aarch64/APKBUILD
T
Ferass El Hafidi e2203fa367 soc-amlogic-s905: rename to soc-amlogic-aarch64
This package is being used by a huge number of Amlogic devices besides
Amlogic S905.  This can lead to confusion, so rename it to a more
generic name.

[ci:ignore-count]
[ci:skip-vercheck]

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6744
2025-07-12 12:01:32 +00:00

50 lines
1.6 KiB
Bash

# Maintainer: Ferass El Hafidi <funderscore@postmarketos.org>
# Co-Maintainer: exkc <exxxxkc@getgoogleoff.me>
pkgname=soc-amlogic-aarch64
pkgdesc="Common package for devices using an Amlogic AArch64 SoC"
pkgver=3
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
makedepends="u-boot-tools"
subpackages="
$pkgname-boot:boot
$pkgname-xorg:x11
"
source="
s905_autoscript.cmd
xorg.conf
"
provides="soc-amlogic-s905=$pkgver-r$pkgrel"
replaces="soc-amlogic-s905"
package() {
mkdir -p "$pkgdir"
}
boot() {
pkgdesc="Script for chainloading modern U-Boot from legacy U-Boot on Amlogic TV Boxes"
mkdir -p "$subpkgdir/boot"
# Required if installing to an SD card
mkimage -A arm64 -O linux -T script -C none -a 0 -e 0 -n "S905 autoscript" \
-d "$srcdir/s905_autoscript.cmd" "$subpkgdir/boot/s905_autoscript"
mkimage -A arm64 -O linux -T script -C none -a 0 -e 0 -n "AML_autoscript" \
-d "$srcdir/s905_autoscript.cmd" "$subpkgdir/boot/aml_autoscript"
}
x11() {
pkgdesc="X11 configuration for Amlogic AArch64-based devices"
# Shamelessly taken from Armbian.
# https://github.com/armbian/build/blob/master/config/sources/families/include/meson64_common.inc
install_if="$pkgname xorg-server"
install -D -m644 "$srcdir"/xorg.conf \
"$subpkgdir"/etc/X11/xorg.conf.d/11-meson.conf
}
sha512sums="
fbb3bd2198fd5d95454059b5394484172c27836b54b4a3bb7dc11c65af11aafe615eaed491bdbea34173b12c102eb2319cb491dbcdfff10bdb0ec2c3b31861c3 s905_autoscript.cmd
72267e7bb0e3cd4a7c89d51c046c3a9c93d7ff9fe23a24357088fc94d45c6cc314cf12c8475421eadc507937ebc1ca9b1b9afdec0c78cf39977ebdd5f5eab24d xorg.conf
"