2018-05-29 19:33:40 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-raspberry-pi
|
2018-05-29 19:33:40 +00:00
|
|
|
pkgdesc="Raspberry Pi"
|
|
|
|
pkgver=0.1
|
2021-04-11 15:59:52 +00:00
|
|
|
pkgrel=16
|
2018-05-29 19:33:40 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
2018-11-07 06:45:58 +00:00
|
|
|
arch="armhf"
|
|
|
|
options="!check !archcheck"
|
2018-05-29 19:33:40 +00:00
|
|
|
depends="postmarketos-base raspberrypi-bootloader"
|
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-rpi:kernel_rpi
|
|
|
|
$pkgname-kernel-rpi2:kernel_rpi2
|
2019-11-30 14:45:12 +00:00
|
|
|
$pkgname-sway
|
|
|
|
$pkgname-phosh
|
2018-05-29 19:33:40 +00:00
|
|
|
"
|
2019-11-30 14:45:12 +00:00
|
|
|
source="deviceinfo
|
|
|
|
config.txt
|
|
|
|
usercfg.txt
|
|
|
|
cmdline.txt
|
|
|
|
95-vchiq-permissions.rules
|
|
|
|
start-even-without-input.sh"
|
2018-05-29 19:33:40 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
install -Dm644 "$srcdir"/config.txt "$pkgdir"/boot/config.txt
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_rpi() {
|
2019-01-03 00:18:12 +00:00
|
|
|
pkgdesc="Kernel for the Raspberry Pi 1 (from Alpine, depends on non free firmware!)"
|
2018-05-29 19:33:40 +00:00
|
|
|
depends="$pkgname linux-rpi"
|
2020-03-10 01:04:33 +00:00
|
|
|
install="$subpkgname.post-install $subpkgname.post-upgrade"
|
2018-05-29 19:33:40 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_rpi2() {
|
2019-01-03 00:18:12 +00:00
|
|
|
pkgdesc="Kernel for the Raspberry Pi 2 (from Alpine, depends on non free firmware!)"
|
2018-05-29 19:33:40 +00:00
|
|
|
depends="$pkgname linux-rpi2"
|
2020-03-10 01:04:33 +00:00
|
|
|
install="$subpkgname.post-install $subpkgname.post-upgrade"
|
2018-05-29 19:33:40 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2019-11-30 14:45:12 +00:00
|
|
|
sway() {
|
|
|
|
install_if="$pkgname postmarketos-ui-sway"
|
|
|
|
depends="$pkgname mesa-dri-vc4"
|
|
|
|
install -Dm644 "$srcdir"/start-even-without-input.sh "$pkgdir"/etc/profile.d/start-even-without-input.sh
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
|
|
|
depends="$pkgname mesa-dri-vc4"
|
|
|
|
install -Dm644 "$srcdir"/start-even-without-input.sh "$pkgdir"/etc/profile.d/start-even-without-input.sh
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-09-18 17:06:03 +00:00
|
|
|
sha512sums="
|
|
|
|
f1ee1275f72805f6b04a9b7a111d0111b96c3df37dbff565add99b0007a6e4fecc781a4599b439f2c8308ec5db9db66ae2e6f0db66d9db3327b3013b347474f0 deviceinfo
|
2019-11-30 14:45:12 +00:00
|
|
|
501b085650a7c1e39628b64c6bf05e967f08470c9c70c648ce45b5cdf05e831b994f91e91ba83ad076797deb7ee405ff4912bcd71779d66b7056d1786d366a3c config.txt
|
2018-05-29 19:33:40 +00:00
|
|
|
e94c810f973eb6b6d0fb3687ea1d70612ba00e9c5d6b3608390a161e077c5591fd9d232c37b42443c05ed28bb639ca1754422ff35899c5e33d7fc266e0e1ad05 usercfg.txt
|
|
|
|
ae3de0b8fec07d3a283dc3c06bf8678eec1e65c9faf0b7f4fdc9fb92751e324d1f8e2fb224dbbf561b7e5a6fb34769bfa1657858375f74b101a130d78e0737e2 cmdline.txt
|
2019-11-30 14:45:12 +00:00
|
|
|
7e5505cb07d5b4a81bd28443d508336b5c547356538f1c06f91ed93ad0d7d456d4f74f1d24df5a2e08c17e74f0a66607352ac4874e967e9a91dfec9522d2d58d 95-vchiq-permissions.rules
|
2021-09-18 17:06:03 +00:00
|
|
|
5e91a9efbaa0c734492472b0d1bb1798ec75587f3cf0ccbc31489b2e1ee6c6713e78397e67cdce3616af967bb3cbf57b49a137879106a3eec4a4a4e3d74f0610 start-even-without-input.sh
|
|
|
|
"
|