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-04-24 18:52:15 +00:00
|
|
|
pkgver=8
|
2024-05-01 22:22:01 +00:00
|
|
|
pkgrel=1
|
2023-09-11 10:22:48 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck !strip"
|
|
|
|
depends="
|
2024-04-11 21:02:05 +00:00
|
|
|
bootmac
|
|
|
|
firmware-lenovo-21bx
|
|
|
|
libmbim-tools
|
|
|
|
linux-firmware-ath11k
|
|
|
|
linux-firmware-qca
|
|
|
|
linux-firmware-qcom
|
2023-09-11 10:22:48 +00:00
|
|
|
linux-lenovo-21bx
|
2024-04-11 21:02:05 +00:00
|
|
|
pd-mapper
|
|
|
|
pd-mapper-openrc
|
2023-09-11 10:22:48 +00:00
|
|
|
postmarketos-base
|
2024-04-11 21:02:05 +00:00
|
|
|
qmi-utils
|
2023-09-11 10:22:48 +00:00
|
|
|
systemd-boot
|
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
firmware.files
|
2024-04-24 18:52:15 +00:00
|
|
|
modules-initfs
|
|
|
|
pipewire.conf
|
2024-04-11 21:02:05 +00:00
|
|
|
usbguard.conf
|
2023-09-11 10:22:48 +00:00
|
|
|
"
|
|
|
|
subpackages="
|
2024-04-11 21:02:05 +00:00
|
|
|
$pkgname-usbguard
|
2023-09-11 10:22:48 +00:00
|
|
|
$pkgname-vulkan
|
|
|
|
"
|
2024-04-11 21:02:05 +00:00
|
|
|
install="$pkgname.post-install"
|
2023-09-11 10:22:48 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir/"/firmware.files \
|
2024-04-11 21:02:05 +00:00
|
|
|
-t "$pkgdir"/usr/share/mkinitfs/files/
|
2024-05-01 22:22:01 +00:00
|
|
|
install -Dm644 "$srcdir"/pipewire.conf \
|
|
|
|
-t "pkgdir"/usr/share/pipewire/pipewire.conf.d/
|
2023-09-11 10:22:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
vulkan() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel vulkan-loader"
|
|
|
|
depends="mesa-vulkan-freedreno"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2024-04-11 21:02:05 +00:00
|
|
|
usbguard() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel usbguard"
|
|
|
|
install -Dm600 "$srcdir"/usbguard.conf \
|
|
|
|
"$subpkgdir"/etc/usbguard/rules.d/"$pkgname".conf
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2023-09-11 10:22:48 +00:00
|
|
|
sha512sums="
|
2024-04-11 21:02:05 +00:00
|
|
|
c3570f44cd0134fd7400a5467cfddb3c1877a771fda8006228d1b0fd81536171ece53bf7562fc0e11dcc1fd3c6830e324e0d5ad9fdc4e16b53107fa3a04004fb deviceinfo
|
2023-12-29 06:52:18 +00:00
|
|
|
82f7719285434d8c7a5268ddc21d513bb3f3788eb3dd2df099e1c245add9d19719047b003a47edb077e095ebe09d9601b1312c001578e7dfa4ed61d72098ef74 firmware.files
|
2024-04-24 18:52:15 +00:00
|
|
|
5e91aebdd5aa84eef2660c5cbecd27b1c3662f1707538d53764a74dc1e6cbac451b1041b9aaab92f087d44630036b10e5155a993dd4b2e54cba81637ddb47593 modules-initfs
|
|
|
|
52bbb9564ec713db5d46937701b121afe0c6c644fffe189a05766f491b4997b1bbc4c1f90229efb5764d795df8d40a57d4c840ee4b32d426e7a84520364b8bf5 pipewire.conf
|
2024-04-11 21:02:05 +00:00
|
|
|
0d0412eb1f01af39000c39391f622640461305d83dae1a53aa7eef640cc17fd265cabca4e4e57dea053c47a4e50f9feb90f12ee5310d5b6425783e83efc5f9d8 usbguard.conf
|
2023-09-11 10:22:48 +00:00
|
|
|
"
|