2019-12-28 16:49:12 +00:00
|
|
|
# Maintainer: Daniele Debernardi <drebrez@gmail.com>
|
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-raspberry-pi4
|
2024-03-10 13:38:06 +00:00
|
|
|
pkgver=0.5
|
|
|
|
pkgrel=0
|
2019-12-28 16:49:12 +00:00
|
|
|
pkgdesc="Raspberry Pi 4"
|
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2024-03-10 13:36:43 +00:00
|
|
|
depends="postmarketos-base raspberrypi-bootloader linux-rpi"
|
2019-12-28 16:49:12 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2020-03-10 01:04:33 +00:00
|
|
|
install="$pkgname.post-install $pkgname.post-upgrade"
|
2023-04-04 11:54:48 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-plasma-bigscreen:plasma_bigscreen
|
|
|
|
"
|
2023-08-02 17:06:01 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
modules-initfs
|
2022-09-23 19:18:45 +00:00
|
|
|
usercfg.txt
|
|
|
|
cmdline.txt
|
|
|
|
95-vchiq-permissions.rules
|
2023-04-04 11:54:48 +00:00
|
|
|
enforce-platform.sh
|
2022-09-23 19:18:45 +00:00
|
|
|
"
|
2019-12-28 16:49:12 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
install -Dm644 "$srcdir"/usercfg.txt "$pkgdir"/boot/usercfg.txt
|
|
|
|
install -Dm644 "$srcdir"/cmdline.txt "$pkgdir"/boot/cmdline.txt
|
|
|
|
install -Dm644 "$srcdir"/95-vchiq-permissions.rules \
|
|
|
|
"$pkgdir"/etc/udev/rules.d/95-vchiq-permissions.rules
|
2023-04-04 11:54:48 +00:00
|
|
|
install -Dm755 "$srcdir"/enforce-platform.sh -t "$pkgdir"/etc/profile.d/
|
2019-12-28 16:49:12 +00:00
|
|
|
}
|
|
|
|
|
2022-09-23 19:18:45 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="WiFi/Bluetooth firmware"
|
|
|
|
depends="linux-firmware-brcm"
|
2022-11-11 10:59:34 +00:00
|
|
|
mkdir "$subpkgdir"
|
2022-09-23 19:18:45 +00:00
|
|
|
}
|
|
|
|
|
2023-04-04 11:54:48 +00:00
|
|
|
plasma_bigscreen() {
|
|
|
|
pkgdesc="$pkgdesc (Plasma Bigscreen)"
|
|
|
|
install_if="$pkgname plasma-bigscreen"
|
|
|
|
|
|
|
|
amove etc/profile.d
|
|
|
|
}
|
|
|
|
|
2019-12-28 16:49:12 +00:00
|
|
|
|
2020-09-11 09:26:48 +00:00
|
|
|
sha512sums="
|
2023-08-02 17:06:01 +00:00
|
|
|
5d998ec76512aa4e71daba4e5516433996340a931d027da70f02a9b15343cd1fd8af10375b3c3f99b003b95c6aeebdfb98aeebf998aceacc38373cca6f4c941c deviceinfo
|
|
|
|
e3515cf9f41807917eac1f7663e0131bd18783824facf15f2bb0381635bf6d9a0c334f3786b6fb76d01469de6449878c871f8b747f45e9e3cee77699905cf319 modules-initfs
|
2024-03-10 13:38:06 +00:00
|
|
|
4562c2f6da8bc567806a1ae0c9195f552e659a3ce6419ea387072553b9ebcbb87f9ac7ea4e472c23a70b4aaf64e13d52de43de8094c37139bcf55baa6e1184cb usercfg.txt
|
2019-12-28 16:49:12 +00:00
|
|
|
ae3de0b8fec07d3a283dc3c06bf8678eec1e65c9faf0b7f4fdc9fb92751e324d1f8e2fb224dbbf561b7e5a6fb34769bfa1657858375f74b101a130d78e0737e2 cmdline.txt
|
2020-09-11 09:26:48 +00:00
|
|
|
7e5505cb07d5b4a81bd28443d508336b5c547356538f1c06f91ed93ad0d7d456d4f74f1d24df5a2e08c17e74f0a66607352ac4874e967e9a91dfec9522d2d58d 95-vchiq-permissions.rules
|
2023-04-04 11:54:48 +00:00
|
|
|
56d3ca295eeced3535d033a2a492774254a9bfefa6595ae12cf8146917af1521ad6e25440670657c39a7b1a66d61da298334d3019acf0dbf7568cfed01600414 enforce-platform.sh
|
2020-09-11 09:26:48 +00:00
|
|
|
"
|