e259e5f420
- rename 'ch-de' keymap to 'ch' as in X keyboard config file - add PMOS_NO_OUTPUT_REDIRECT to kernel cmdline (fixes debug-shell) - add all keymap files in initramfs - load default us keymap in initramfs
153 lines
7.1 KiB
Text
153 lines
7.1 KiB
Text
pkgname=device-nokia-n900
|
|
pkgver=4
|
|
pkgrel=7
|
|
pkgdesc="Nokia N900"
|
|
url="https://postmarketos.org"
|
|
arch="armv7"
|
|
license="MIT"
|
|
depends="postmarketos-base linux-postmarketos-stable uboot-tools kbd kbd-bkeymaps ofono mesa-dri-swrast"
|
|
makedepends="uboot-tools kbd kbd-bkeymaps"
|
|
install="$pkgname.post-install"
|
|
subpackages="
|
|
$pkgname-weston
|
|
$pkgname-x11
|
|
$pkgname-i3wm
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
"
|
|
source="
|
|
deviceinfo
|
|
uboot-script.cmd
|
|
backlight-enable.sh
|
|
udev/90-touchscreen-dev.rules
|
|
udev/10-nokia-modem.rules
|
|
acpi_handler.sh
|
|
acpi.map
|
|
keymaps/rx51_us.map
|
|
keymaps/rx51_ch.map
|
|
keymaps/rx51_it.map
|
|
keymaps/40-xkb.conf
|
|
pointercal
|
|
asound.state
|
|
weston.ini
|
|
i3wm/bq27200_status.sh
|
|
i3wm/conky.conf
|
|
i3wm/i3wm.conf
|
|
i3wm/i3status.conf
|
|
i3wm/protip_shell.sh
|
|
xorg.conf
|
|
10-noroot-suspend
|
|
10-initfs-keymap.files
|
|
10-initfs-keymap.sh
|
|
"
|
|
options="!check !archcheck"
|
|
|
|
build() {
|
|
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n postmarketos -d "$srcdir/uboot-script.cmd" "$srcdir/boot.scr"
|
|
mkdir "$srcdir"/keymaps
|
|
loadkeys -b "$srcdir"/rx51_us.map > "$srcdir"/keymaps/rx51_us.bmap
|
|
gzip "$srcdir"/keymaps/rx51_us.bmap
|
|
loadkeys -b "$srcdir"/rx51_ch.map > "$srcdir"/keymaps/rx51_ch.bmap
|
|
gzip "$srcdir"/keymaps/rx51_ch.bmap
|
|
loadkeys -b "$srcdir"/rx51_it.map > "$srcdir"/keymaps/rx51_it.bmap
|
|
gzip "$srcdir"/keymaps/rx51_it.bmap
|
|
return 0
|
|
}
|
|
|
|
package() {
|
|
install -D -m644 "$srcdir"/deviceinfo \
|
|
"$pkgdir"/etc/deviceinfo
|
|
install -D -m644 "$srcdir"/boot.scr \
|
|
"$pkgdir"/boot/boot.scr
|
|
install -D -m644 "$srcdir"/backlight-enable.sh \
|
|
"$pkgdir"/etc/postmarketos-mkinitfs/hooks/00-${pkgname}-backlight.sh
|
|
install -D -m644 "$srcdir"/pointercal \
|
|
"$pkgdir"/etc/pointercal
|
|
install -D -m644 "$srcdir"/asound.state \
|
|
"$pkgdir"/var/lib/alsa/asound.state
|
|
install -Dm644 "$srcdir"/10-initfs-keymap.files \
|
|
"$pkgdir"/etc/postmarketos-mkinitfs/files/10-initfs-keymap.files
|
|
install -Dm644 "$srcdir"/10-initfs-keymap.sh \
|
|
"$pkgdir"/etc/postmarketos-mkinitfs/hooks/10-initfs-keymap.sh
|
|
|
|
# Udev rules
|
|
install -D -m644 "$srcdir"/90-touchscreen-dev.rules \
|
|
"$pkgdir"/etc/udev/rules.d/90-touchscreen-dev.rules
|
|
install -D -m644 "$srcdir"/10-nokia-modem.rules \
|
|
"$pkgdir"/etc/udev/rules.d/10-nokia-modem.rules
|
|
|
|
# ACPI
|
|
mkdir "$pkgdir"/etc/acpi
|
|
install -D -m755 "$srcdir"/acpi_handler.sh \
|
|
"$pkgdir"/etc/acpi/handler.sh
|
|
install -D -m644 "$srcdir"/acpi.map \
|
|
"$pkgdir"/etc/acpi.map
|
|
|
|
# Keymap
|
|
install -D -m644 "$srcdir"/keymaps/rx51_us.bmap.gz \
|
|
"$pkgdir"/usr/share/bkeymaps/us/rx51_us.bmap.gz
|
|
install -D -m644 "$srcdir"/keymaps/rx51_ch.bmap.gz \
|
|
"$pkgdir"/usr/share/bkeymaps/ch/rx51_ch.bmap.gz
|
|
install -D -m644 "$srcdir"/keymaps/rx51_it.bmap.gz \
|
|
"$pkgdir"/usr/share/bkeymaps/it/rx51_it.bmap.gz
|
|
}
|
|
|
|
weston() {
|
|
install_if="$pkgname weston"
|
|
install -Dm644 "$srcdir"/weston.ini \
|
|
"$subpkgdir"/etc/xdg/weston/weston.ini
|
|
}
|
|
|
|
x11() {
|
|
install_if="$pkgname xorg-server"
|
|
install -D -m644 "$srcdir"/40-xkb.conf \
|
|
"$subpkgdir"/etc/X11/xorg.conf.d/40-xkb.conf
|
|
install -D -m644 "$srcdir"/xorg.conf \
|
|
"$subpkgdir"/etc/X11/xorg.conf.d/11-n900.conf
|
|
}
|
|
|
|
i3wm() {
|
|
install_if="$pkgname postmarketos-ui-i3wm"
|
|
depends="unclutter-xfixes conky feh postmarketos-artwork-wallpapers pm-utils"
|
|
install -D -m644 "$srcdir"/i3wm.conf \
|
|
"$subpkgdir"/etc/skel/.config/i3/config
|
|
install -D -m644 "$srcdir"/i3status.conf \
|
|
"$subpkgdir"/etc/skel/.config/i3/i3status.conf
|
|
install -D -m755 "$srcdir"/bq27200_status.sh \
|
|
"$subpkgdir"/etc/skel/.config/i3/bq27200_status.sh
|
|
install -D -m755 "$srcdir"/protip_shell.sh \
|
|
"$subpkgdir"/etc/skel/.protip_shell.sh
|
|
install -D -m644 "$srcdir"/conky.conf \
|
|
"$subpkgdir"/etc/skel/.config/conky/conky.conf
|
|
install -D -m440 "$srcdir"/10-noroot-suspend \
|
|
"$subpkgdir"/etc/sudoers.d/10-noroot-suspend
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="Wifi firmware"
|
|
depends="linux-firmware-ti-connectivity"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="36bb56878b94eebd21313aba0357365e1026b2264d2a0e02473e3caad65eff6b5e1ac3dc5bf19b8d7c8762bff9dad32fdf3b7f9dfc642d5a5bc2607e4b92fca3 deviceinfo
|
|
1558d02269b011e42e1d3969215b9dbd73658ffbf6ddb38c05f55915c0ff890306a2f56bb8155c825a430cad1e98f887475a40d9c2ae40b1892f964e1d395843 uboot-script.cmd
|
|
3d55e34b95791636e44a5f41754f3d0de039dbba41f7a556d43a95c9e64afcfa930046b4b96b40020b6f196096ffba93514682927e32fa4488686fdd19c6da5a backlight-enable.sh
|
|
c6012aef28b096141b924fced226ec99fb93eb53b69c064a8887d8fecdf8dc08a3ba3db399e18d88374c6ef4c59013a30699c7e4d76e5cb771040582573a0527 90-touchscreen-dev.rules
|
|
9e72035c88632d12895534e5aa5746f2c130c7dcdafa8702748d62b71ed0e1b5911b6e1f07f9b9e39b6072bbb662f66aead585baa1dcacb7d8c8953ca89b6762 10-nokia-modem.rules
|
|
df5dcae9a32d04ba2fed8b4dbb8722f8d56d063a288dfbaeca37806bdbb8ba4de639b392859b9f24040a1032456d5dcd754f51314e3ab66515b91ae1e03c93a7 acpi_handler.sh
|
|
7761aec6e6e219245b006e7bdc1d19812e9c5915cf3e64bb3dd46bb4b5570c1715650b53a1fc1007cb814076b5d81be0a66ba7ebf06d9a1fa4e364725c3ee633 acpi.map
|
|
c9ff8b5968fe94007e1139db5ae76f3ee6c214356bff297b9672276c6adb332ba2342b6ca54cf7992d6556f3c68a13ef49ae5e61abe86154935514034170e228 rx51_us.map
|
|
dc585e11bf4e06e36c5c62bcc024eaacecc30437d9da5257df14be05e247a2f2bc208874be3058edc6f87cc2877da2ecafd2f627d9b465d4fd24475fc21fdc71 rx51_ch.map
|
|
082a5166e38296b097e873b0b4aeaf007e594d3bf4470c74e91ee3efedcf28ad25cd55c23dd63e460339898ae08e77e111b0e1092fa5e661db90bb40732103a1 rx51_it.map
|
|
181187db6d88b872233f594759373f32fd08065ee340b60f0c3ff06396d99f4b1250192d70a054fcc9e51e067f6cc063c62b7d8dfff3427b292f1d0c766db206 40-xkb.conf
|
|
143c21f0b18a016d37cb44178e9daea09f128a90769b48353c03c3f245cb9b1f7e773b9ccee084973fc78ddd7a18c2642e54888a85bda7c7daecddc9a8c62eff pointercal
|
|
e023df91295fe7e410e163747d17e5b92fe3c022ff076e286778b8334368f885603b8fda65671e4a7328766da7b2552ea4df1b1399df23e504a41a6655771142 asound.state
|
|
7f48d1a044f8c02f7b1d11487ec1f83978d9b0ea12529156e7418f82be556d9baee32b70c4d911174e388bb4941dc19519e93e7551d00ffcd825c848665ff096 weston.ini
|
|
4e7abd1ac6223494b2ce96f7fb2dfe6116ee8a526440df07307994ed577f1860222548f7512273b5a21febac8119794774658f60e5d6976747ddc60323d26a62 bq27200_status.sh
|
|
16c31bf28b9dcc256821b153de199bd27decc76e4bde63130c1d1556a63cf2cafb64c4d4df42e00690564fce801c5216e8e97e4262a546440fd4bc2e14eaae1c conky.conf
|
|
e2c6d818c61398af56fd2245639ecb0d528a7ec78951eb3ab1745f62f118884a09eb96b382c50c2f849607bb4fe1e0a632e53daaf8a5b95bad5a34155b4aaceb i3wm.conf
|
|
3bed8554400d6bbebf7e61b14f347a0f3e24b29be296c56fc829ed655cf67fa547c09bb715589b716d6c3f04492e9f3a12473dce6c7151bc15562b9d102bac2f i3status.conf
|
|
0b80af9fd1f36e6bc06bdfdf48352897234ac7457210649016665da8570a5a64b8a0841b4fbeb64fd7054a5246a64718cf4412f8a53024ce39b28a80984972d8 protip_shell.sh
|
|
a91f98daa60efa2beb2ff6b405097f92edca5f1bbb9e7675499139be52ca2570712f8f06f9032ef29f636f99c8f8da8b992f746eab6424aac04260c16158bcc2 xorg.conf
|
|
38ecdf876b5aa9df2e5ea61c7ebb6f9ca871bdf433029808d028d563dfd740232b3dc21dba098a7622453212af1272e2e782be861b4a96a49fd475a618442d45 10-noroot-suspend
|
|
ae5c4c2452d8da66174d4eef9644796b29b0188ad683a6516be3710e0893db5447583f8b46ec9b76144e030c1ce4d9c316542af25b9369d9f27b8c026f6e0fe1 10-initfs-keymap.files
|
|
4656d3b3ced0a86e2d6315c89322899f646a689e9cb64609aa8ad5a676b23d93706d8a37f3be6f6b12c6b1e8501b7d26ecafecf27322333850513a6805c61910 10-initfs-keymap.sh"
|