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
|
2023-03-29 19:26:57 +00:00
|
|
|
pkgver=1.14.0
|
|
|
|
pkgrel=0
|
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="
|
2022-04-01 04:02:43 +00:00
|
|
|
adwaita-icon-theme
|
2021-11-07 09:51:56 +00:00
|
|
|
alsa-utils
|
2022-04-30 14:18:32 +00:00
|
|
|
callaudiod
|
2021-11-07 09:51:56 +00:00
|
|
|
codemadness-frontends
|
2023-03-29 19:26:57 +00:00
|
|
|
conky
|
2021-06-09 23:34:05 +00:00
|
|
|
dnsmasq
|
2021-11-21 09:32:58 +00:00
|
|
|
dunstify
|
2022-02-06 13:40:15 +00:00
|
|
|
file
|
2023-03-29 19:26:57 +00:00
|
|
|
font-dejavu
|
|
|
|
font-dejavu-sans-mono-nerd
|
2021-11-07 09:51:56 +00:00
|
|
|
geoclue
|
|
|
|
inotify-tools
|
|
|
|
light
|
2022-04-30 14:18:32 +00:00
|
|
|
linux-tools-iio
|
2021-11-07 09:51:56 +00:00
|
|
|
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
|
2023-01-29 00:38:03 +00:00
|
|
|
pnc
|
2021-09-01 17:59:26 +00:00
|
|
|
polkit
|
|
|
|
polkit-openrc
|
2021-06-09 23:34:05 +00:00
|
|
|
postmarketos-base-ui
|
2022-12-31 15:53:45 +00:00
|
|
|
postmarketos-base-ui-networkmanager
|
2022-04-30 14:18:32 +00:00
|
|
|
pulseaudio-utils
|
|
|
|
superd
|
2022-12-11 00:30:12 +00:00
|
|
|
sxmo-common-audio
|
2021-09-01 17:59:26 +00:00
|
|
|
sxmo-utils
|
2021-05-25 16:31:04 +00:00
|
|
|
sxmo-utils-openrc
|
2021-09-01 17:59:26 +00:00
|
|
|
tinydm
|
|
|
|
tinydm-openrc
|
2021-11-07 09:51:56 +00:00
|
|
|
tzdata
|
|
|
|
v4l-utils
|
2022-02-06 13:40:15 +00:00
|
|
|
vim
|
2022-01-08 04:08:39 +00:00
|
|
|
vvmd
|
2022-04-13 02:13:47 +00:00
|
|
|
xdg-user-dirs
|
2022-04-30 14:18:32 +00:00
|
|
|
yt-dlp
|
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"
|
2023-02-04 07:37:22 +00:00
|
|
|
subpackages="$pkgname-qt_tweaks $pkgname-bluetooth $pkgname-bluetoothpulse"
|
2021-10-25 21:34:22 +00:00
|
|
|
source="
|
|
|
|
sxmo-qt-mobile-controls.sh
|
|
|
|
postmarketos.conf
|
|
|
|
"
|
2020-08-01 23:19:28 +00:00
|
|
|
options="!check" # has no tests
|
|
|
|
|
2023-03-29 19:26:57 +00:00
|
|
|
# bonsai and sxmobar requires hare which doesnt work on all arches
|
|
|
|
# refer to https://pkgs.alpinelinux.org/packages?name=hare&branch=edge&repo=&arch=&maintainer=
|
|
|
|
# and add arches here as they become available. Bonsai should always be preferred
|
|
|
|
# cause it fixes alot of issues. If bonsai is not installed, sxmo will fallback
|
|
|
|
# to the old buggy shell script.
|
|
|
|
case "$CARCH" in
|
|
|
|
x86_64|aarch64)
|
|
|
|
depends="$depends bonsai sxmobar"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2020-08-01 23:19:28 +00:00
|
|
|
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
|
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
|
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
|
|
|
}
|
|
|
|
|
2023-02-04 07:37:22 +00:00
|
|
|
bluetoothpulse() {
|
|
|
|
depends="
|
|
|
|
bluez
|
|
|
|
pulseaudio-bluez
|
|
|
|
!sxmo-common-bluetooth
|
|
|
|
"
|
|
|
|
replaces="bluez" # Autoenable controllers
|
|
|
|
mkdir -p "$subpkgdir"/etc/bluetooth
|
|
|
|
install -Dm644 "$srcdir"/postmarketos.conf \
|
|
|
|
"$subpkgdir"/etc/bluetooth/main.conf
|
|
|
|
}
|
|
|
|
|
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-09-01 17:59:26 +00:00
|
|
|
"
|