pmaports/device/testing/device-samsung-w767/APKBUILD
Pablo Correa Gómez 4914067590
device/*: transform deviceinfo_modules_initfs into a file (MR 4169)
The file is automatically packed by devicepkg-dev utils

Relates #1836
2023-08-04 08:27:44 +02:00

67 lines
1.4 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=device-samsung-w767
pkgdesc="Samsung Galaxy Book S"
pkgver=1
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck pmb:strict"
depends="
linux-postmarketos-qcom-sc8180x
postmarketos-base
soc-qcom-sc8180x
"
makedepends="devicepkg-dev grub grub-efi"
source="deviceinfo modules-initfs"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
devicepkg_build $startdir $pkgname
grub-mkimage \
--prefix="/grub" \
--output="bootaa64.efi" \
--format="arm64-efi" \
--compression="xz" \
\
all_video \
cat \
configfile \
disk \
echo \
efi_gop \
fat \
gzio \
help \
iso9660 \
linux \
ls \
normal \
part_gpt \
part_msdos \
search \
search_label \
test \
true
}
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/bootaa64.efi \
-t "$pkgdir"/boot/EFI/Boot
}
nonfree_firmware() {
pkgdesc="WiFi firmware"
depends="firmware-samsung-w767 linux-firmware-ath10k soc-qcom-sc8180x-nonfree-firmware"
mkdir "$subpkgdir"
}
sha512sums="
987d17a927eb8bda1cf26bf7be76f90053636a246635af5b94a8e969edc067fd2d8e8050d2925ef703c0b66d2563a9c2a0ba72347d2137ff87f71238fcf465a0 deviceinfo
23ade4e4526fa1445240219d227f34a445a3298b63c15fca751eea7c5ba0306ce3a76e4ddee341f9aa6f0e02a7f9d3d0ebb4dda0aec8ae0585dd8f6de7483c85 modules-initfs
"