2023-09-11 10:22:48 +00:00
|
|
|
# Maintainer: Konrad Dybcio <konradybcio@kernel.org>
|
|
|
|
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
|
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-lenovo-21bx
|
|
|
|
pkgdesc="Lenovo ThinkPad X13s"
|
2024-01-26 19:24:46 +00:00
|
|
|
pkgver=6
|
|
|
|
pkgrel=0
|
2023-09-11 10:22:48 +00:00
|
|
|
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
|
2023-12-29 06:52:18 +00:00
|
|
|
firmware-lenovo-21bx
|
2024-01-12 20:39:35 +00:00
|
|
|
libmbim-tools
|
2023-09-11 10:22:48 +00:00
|
|
|
linux-firmware-ath11k
|
|
|
|
linux-firmware-qca
|
|
|
|
linux-firmware-qcom
|
|
|
|
pd-mapper
|
|
|
|
pd-mapper-openrc
|
2024-01-12 20:39:35 +00:00
|
|
|
qmi-utils
|
2023-09-11 10:22:48 +00:00
|
|
|
"
|
|
|
|
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="
|
2024-01-26 19:24:46 +00:00
|
|
|
994173797adbbd79b0c33d3427d5e71f369e7506cc200b11d920d5b8854b2be28035a66602fe34254738c2eecd7d3e63c846424f5dad70e3e41e202dbd1393b6 deviceinfo
|
2023-12-24 02:43:07 +00:00
|
|
|
5e91aebdd5aa84eef2660c5cbecd27b1c3662f1707538d53764a74dc1e6cbac451b1041b9aaab92f087d44630036b10e5155a993dd4b2e54cba81637ddb47593 modules-initfs
|
2023-12-29 06:52:18 +00:00
|
|
|
82f7719285434d8c7a5268ddc21d513bb3f3788eb3dd2df099e1c245add9d19719047b003a47edb077e095ebe09d9601b1312c001578e7dfa4ed61d72098ef74 firmware.files
|
2023-09-11 10:22:48 +00:00
|
|
|
"
|