# Maintainer: Konrad Dybcio # Co-Maintainer: Clayton Craft # Reference: pkgname=device-lenovo-21bx pkgdesc="Lenovo ThinkPad X13s" pkgver=1 pkgrel=0 url="https://postmarketos.org" license="MIT" arch="aarch64" options="!check !archcheck !strip" depends=" linux-lenovo-21bx postmarketos-base systemd-boot " makedepends="devicepkg-dev" source=" deviceinfo modules-initfs firmware.files " subpackages=" $pkgname-nonfree-firmware:nonfree_firmware $pkgname-vulkan " build() { devicepkg_build $startdir $pkgname } package() { devicepkg_package $startdir $pkgname } nonfree_firmware() { pkgdesc="Firmware for Bluetooth, Modem, WiFi, etc." depends=" bootmac linux-firmware-ath11k linux-firmware-qca linux-firmware-qcom pd-mapper pd-mapper-openrc " install="$subpkgname.post-install" install -Dm644 "$srcdir/"/firmware.files \ -t "$subpkgdir"/usr/share/mkinitfs/files/ } vulkan() { install_if="$pkgname=$pkgver-r$pkgrel vulkan-loader" depends="mesa-vulkan-freedreno" mkdir "$subpkgdir" } sha512sums=" 8c8e03e6061e72305442b27f3f6e0d096d4d7257ee3e2a9edbf1d87e0baf43a70417784465cad480d7bb557b00f012293e1a748c436937587ba5c007834274dc deviceinfo 84767961200e6c04928c34365d9c1daa7da90214690666f87e844f4a42d8f2abc551a4f353196babbabe6b3b4c0e754a2175e7a79d92d842804d6a31ef09410c modules-initfs 38da7bcdd603335feed1de8b477a289c5f9765ca8ce566b4ee144b49c4763ce41050cf29696ad38f4254b0190a48948f16f936857693d2b30196341e81b0233f firmware.files "