2021-11-14 17:13:14 +00:00
|
|
|
# Reference: https://postmarketos.org/uipkg
|
2020-08-01 23:19:28 +00:00
|
|
|
# Maintainer: Miles Alan <m@milesalan.com>
|
2021-11-15 12:22:57 +00:00
|
|
|
pkgname=sxmo-common
|
2021-11-07 09:51:56 +00:00
|
|
|
pkgver=1.6.0
|
2021-12-16 04:19:17 +00:00
|
|
|
pkgrel=8
|
2021-11-15 12:22:57 +00:00
|
|
|
pkgdesc="Simple Mobile: Core package to build custom SXMO desktop environments"
|
2020-08-01 23:19:28 +00:00
|
|
|
url="http://sr.ht/~mil/Sxmo"
|
|
|
|
arch="noarch !armhf"
|
|
|
|
license="MIT"
|
2021-05-25 16:31:04 +00:00
|
|
|
depends="
|
2021-11-07 09:51:56 +00:00
|
|
|
alsa-utils
|
|
|
|
codemadness-frontends
|
2021-06-09 23:34:05 +00:00
|
|
|
dnsmasq
|
2021-11-21 09:32:58 +00:00
|
|
|
dunstify
|
2021-11-07 09:51:56 +00:00
|
|
|
ffmpeg
|
|
|
|
font-fira-mono-nerd
|
|
|
|
font-terminus-nerd
|
|
|
|
geoclue
|
|
|
|
inotify-tools
|
|
|
|
light
|
|
|
|
lisgd
|
|
|
|
mediainfo
|
|
|
|
mmsd-tng
|
|
|
|
mmsd-tng-tools
|
|
|
|
mnc
|
|
|
|
modemmanager
|
2021-05-25 15:09:49 +00:00
|
|
|
modemmanager-openrc
|
2021-11-07 09:51:56 +00:00
|
|
|
mpv
|
|
|
|
ncurses
|
|
|
|
networkmanager
|
2021-09-01 17:59:26 +00:00
|
|
|
networkmanager-openrc
|
2021-11-07 09:51:56 +00:00
|
|
|
pn
|
2021-09-01 17:59:26 +00:00
|
|
|
polkit
|
|
|
|
polkit-openrc
|
2021-06-09 23:34:05 +00:00
|
|
|
postmarketos-base-ui
|
2021-09-01 17:59:26 +00:00
|
|
|
sxmo-utils
|
2021-05-25 16:31:04 +00:00
|
|
|
sxmo-utils-openrc
|
2021-11-07 09:51:56 +00:00
|
|
|
terminus-font
|
2021-09-01 17:59:26 +00:00
|
|
|
tinydm
|
|
|
|
tinydm-openrc
|
2021-11-07 09:51:56 +00:00
|
|
|
tzdata
|
|
|
|
v4l-utils
|
|
|
|
vis
|
|
|
|
youtube-dl
|
2021-05-25 16:31:04 +00:00
|
|
|
"
|
2021-02-13 10:38:58 +00:00
|
|
|
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
|
2021-11-12 19:58:37 +00:00
|
|
|
subpackages="$pkgname-qt_tweaks $pkgname-bluetooth"
|
2021-10-25 21:34:22 +00:00
|
|
|
source="
|
|
|
|
sxmo-qt-mobile-controls.sh
|
|
|
|
postmarketos.conf
|
2021-12-02 01:46:01 +00:00
|
|
|
pipewire.conf
|
|
|
|
pipewire-alsa.conf
|
2021-10-25 21:34:22 +00:00
|
|
|
"
|
2020-08-01 23:19:28 +00:00
|
|
|
options="!check" # has no tests
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
2021-02-11 08:22:25 +00:00
|
|
|
|
|
|
|
qt_tweaks() {
|
2021-11-15 12:22:57 +00:00
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel qt5-qtbase"
|
2021-02-11 08:22:25 +00:00
|
|
|
install -Dm755 -t "$subpkgdir"/etc/profile.d/ \
|
|
|
|
"$srcdir"/sxmo-qt-mobile-controls.sh
|
2021-11-15 12:22:57 +00:00
|
|
|
provides="postmarketos-ui-sxmo-qt_tweaks=$pkgver-r$pkgrel"
|
2021-02-11 08:22:25 +00:00
|
|
|
}
|
2021-10-25 21:34:22 +00:00
|
|
|
|
|
|
|
bluetooth() {
|
2021-12-02 01:46:01 +00:00
|
|
|
# Should configure pipewire for bluetooth headsets according to this
|
|
|
|
# https://wiki.alpinelinux.org/wiki/PipeWire
|
2021-10-25 21:34:22 +00:00
|
|
|
depends="
|
2021-12-02 01:46:01 +00:00
|
|
|
dbus
|
|
|
|
dbus-openrc
|
|
|
|
dbus-x11
|
2021-10-25 21:34:22 +00:00
|
|
|
bluez
|
|
|
|
bluez-openrc
|
|
|
|
pipewire
|
2021-12-02 01:46:01 +00:00
|
|
|
wireplumber
|
2021-10-25 21:34:22 +00:00
|
|
|
pipewire-pulse
|
2021-12-02 01:46:01 +00:00
|
|
|
pipewire-spa-bluez
|
2021-10-25 21:34:22 +00:00
|
|
|
"
|
|
|
|
replaces="bluez" # Autoenable controllers
|
|
|
|
mkdir -p "$subpkgdir"/etc/bluetooth
|
|
|
|
install -Dm644 "$srcdir"/postmarketos.conf \
|
|
|
|
"$subpkgdir"/etc/bluetooth/main.conf
|
2021-12-02 01:46:01 +00:00
|
|
|
mkdir -p "$subpkgdir"/etc/modules-load.d
|
|
|
|
install -Dm644 "$srcdir"/pipewire-alsa.conf \
|
|
|
|
"$subpkgdir"/etc/modules-load.d/pipewire-alsa.conf
|
|
|
|
mkdir -p "$subpkgdir"/etc/pipewire
|
|
|
|
install -Dm644 "$srcdir"/pipewire.conf \
|
|
|
|
"$subpkgdir"/etc/pipewire/pipewire.conf
|
2021-10-25 21:34:22 +00:00
|
|
|
install="$subpkgname.post-install $subpkgname.pre-deinstall"
|
2021-11-15 12:22:57 +00:00
|
|
|
provides="postmarketos-ui-sxmo-bluetooth=$pkgver-r$pkgrel"
|
2021-10-25 21:34:22 +00:00
|
|
|
}
|
|
|
|
|
2021-11-07 09:51:56 +00:00
|
|
|
|
2021-09-01 17:59:26 +00:00
|
|
|
sha512sums="
|
|
|
|
bf8db527c49fa724e640a90269ba2648a2555f5867b2adbfbd88d1f685261f757339757c09ee08f590c76de4bd3d0c73a47dea9bd340644dd4707e76152cefd1 sxmo-qt-mobile-controls.sh
|
2021-10-25 21:34:22 +00:00
|
|
|
cc4e4404b135ce484e0976b243973e39f1137aa9dd5e9297f767b2ea65b719ca82e84cc66cb093950ce330dbf786981ced2e5b0d16350deb5706a08ffccb4606 postmarketos.conf
|
2021-12-02 01:46:01 +00:00
|
|
|
ce1fd5011d83a99f981b43e9cba98c7f2daaa2bdfbe19f4512fbb5ea331610dddf29ffb272ebdbe31c5f9d9c68dd5d5494c17fb769e69e2d9cf325c4493b9fa9 pipewire.conf
|
|
|
|
1cd9ff64ef0b53281cc73bb64539a2222b38ce92566154587229b78e39e8b2825b0590714c451c6e65cd5a5a31e3272ab38f8fba31afff6e64e7dcff902abfc1 pipewire-alsa.conf
|
2021-09-01 17:59:26 +00:00
|
|
|
"
|