2023-02-02 17:09:48 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
# Maintainer: Jenneron <jenneron@protonmail.com>
|
|
|
|
pkgname=device-samsung-w767
|
|
|
|
pkgdesc="Samsung Galaxy Book S"
|
|
|
|
pkgver=1
|
2023-08-02 17:06:01 +00:00
|
|
|
pkgrel=1
|
2023-02-02 17:09:48 +00:00
|
|
|
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"
|
2023-08-02 17:06:01 +00:00
|
|
|
source="deviceinfo modules-initfs"
|
2023-02-02 17:09:48 +00:00
|
|
|
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="
|
2023-08-02 17:06:01 +00:00
|
|
|
987d17a927eb8bda1cf26bf7be76f90053636a246635af5b94a8e969edc067fd2d8e8050d2925ef703c0b66d2563a9c2a0ba72347d2137ff87f71238fcf465a0 deviceinfo
|
|
|
|
23ade4e4526fa1445240219d227f34a445a3298b63c15fca751eea7c5ba0306ce3a76e4ddee341f9aa6f0e02a7f9d3d0ebb4dda0aec8ae0585dd8f6de7483c85 modules-initfs
|
2023-02-02 17:09:48 +00:00
|
|
|
"
|