This commit is contained in:
Page Asgardius 2024-08-09 06:36:42 -07:00
parent 0bef4fd540
commit a417c87967
24 changed files with 597 additions and 0 deletions

View file

@ -0,0 +1,3 @@
[org.maliit.keyboard.maliit]
device='plasmamobile'
theme='Breeze'

View file

@ -0,0 +1,42 @@
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=danctnix-plasma-desktop-settings
pkgver=20240312
pkgrel=1
arch=('any')
url="https://danctnix.org"
license=('GPL')
pkgdesc='Settings files for Plasma Desktop'
depends=(
'breeze-gtk'
'kwin'
'layer-shell-qt5'
'maliit-keyboard'
'noto-fonts'
'plasma-desktop'
'sddm'
)
makedepends=('git')
install=$pkgname.install
source=('kwinrc'
'91_plasma.gschema.override'
'plasmamobile.json'
'sddm.conf.d-danctnix.conf')
sha256sums=('57ef45fb1065ca281786aca343f4a51584455c444e95f61f54c5545b1aa27eda'
'fd5a89ce81197a912a9879aa5aa33daf68c8f80a4b70192fff89364ef9d18734'
'42db6e099ab56aa4f6c01107fe83897a059bc371a389379cd3c260d4ab8fd2bc'
'1b3bd51533da9fb9f04c20ff5143b64238dff0ccc5cd47e114b93eff3a0bb6d8')
pkgver() {
date +%Y%m%d
}
package() {
xdg=$pkgdir/etc/xdg
install -Dm644 kwinrc $xdg/kwinrc
install -Dm644 "${srcdir}/91_plasma.gschema.override" -t "${pkgdir}/usr/share/glib-2.0/schemas"
install -Dm644 "${srcdir}/plasmamobile.json" -t "${pkgdir}/usr/share/maliit/keyboard2/devices/"
# sddm login
install -Dm644 "${srcdir}/sddm.conf.d-danctnix.conf" "${pkgdir}/etc/sddm.conf.d/danctnix.conf"
}

View file

@ -0,0 +1,9 @@
post_install() {
dconf update
glib-compile-schemas /usr/share/glib-2.0/schemas
}
post_upgrade() {
dconf update
glib-compile-schemas /usr/share/glib-2.0/schemas
}

View file

@ -0,0 +1,7 @@
[Plugins]
# Blur is far too slow for many mobile devices, don't have it enabled by default
blurEnabled=false
[Wayland]
InputMethod[$e]=/usr/share/applications/com.github.maliit.keyboard.desktop
VirtualKeyboardEnabled=true

View file

@ -0,0 +1,41 @@
{
"defaultGridUnitPx": 8,
"keyMargins": 0.25,
"fontSize": 2.5,
"fontBold": false,
"annotationFontSize": 10,
"annotationTopMargin": 0.35,
"annotationRightMargin": 0.65,
"magnifierHorizontalPadding": 1.8,
"magnifierVerticalPadding": 1,
"actionKeyPadding": 2,
"symbolShiftKeyFontSize": 2,
"smallFontSize": 1.5,
"popoverCellPadding": 2.2,
"popoverTopMargin": 10,
"popoverEdgeMargin": 2.2,
"popoverSquat": 3,
"top_margin": 1,
"bottom_margin": 0,
"row_margin": 0,
"rowMarginLandscape": 4,
"rowMarginPortrait": 7,
"emailLayoutUrlKeyPadding": 1.5,
"wordRibbonHeight": 4,
"wordRibbonFontSize": 14,
"keyboardHeightPortrait": 0.30,
"keyboardHeightLandscape": 0.39,
"flickMargin": 1.5,
"flickBorderWidth": 0.1
}

View file

@ -0,0 +1,10 @@
[Theme]
Current=breeze
[General]
DisplayServer=wayland
GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell
InputMethod=
[Wayland]
CompositorCommand=kwin_wayland --no-global-shortcuts --no-lockscreen --inputmethod maliit-keyboard

View file

@ -0,0 +1,32 @@
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=danctnix-pm-ui-meta
pkgver=6.0
pkgrel=1
pkgdesc='Meta package to install Plasma Mobile'
arch=(any)
url='https://danctnix.org'
depends=(
bluedevil
breeze
breeze-gtk
drkonqi
kscreen
kwallet-pam
kwayland-integration
iio-sensor-proxy
maliit-keyboard
noto-fonts
oxygen
oxygen-sounds
plasma-mobile
plasma-mobile-sounds
plasma-phone-settings
plasma-workspace-wallpapers
polkit-kde-agent
powerdevil
qqc2-breeze-style
qt5-graphicaleffects # remove this after maliit-keyboard 2.3.1-3 lands
xdg-desktop-portal
xdg-desktop-portal-kde
)

34
hfd-service/PKGBUILD Normal file
View file

@ -0,0 +1,34 @@
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=hfd-service
pkgver=0.2.2
pkgrel=1
pkgdesc="Service that manages human feedback devices on mobile devices"
arch=('x86_64' 'armv7h' 'aarch64')
url="https://gitlab.com/ubports/core/hfd-service"
license=('LGPL-3.0-only')
depends=('accountsservice' 'lomiri-deviceinfo' 'qt5-base' 'qt5-feedback')
makedepends=('cmake' 'cmake-extras')
source=(https://gitlab.com/ubports/core/hfd-service/-/archive/$pkgver/hfd-service-$pkgver.tar.gz
plugin_install_dir.patch)
prepare() {
cd "$pkgname-$pkgver"
patch -p1 -N < ../plugin_install_dir.patch
}
build() {
cmake -B build -S "$pkgname-$pkgver" \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DENABLE_LIBHYBRIS=OFF \
-DENABLE_LIBGBINDER=OFF
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
md5sums=('c1629aff85b8f814d6638cd1560928d1'
'f65d8618960aa3466db99708abd974de')

View file

@ -0,0 +1,13 @@
diff --git a/qt/feedback-plugin/CMakeLists.txt b/qt/feedback-plugin/CMakeLists.txt
index 4f1d00a..2441f97 100644
--- a/qt/feedback-plugin/CMakeLists.txt
+++ b/qt/feedback-plugin/CMakeLists.txt
@@ -23,7 +23,7 @@ add_library(
# Ideally, we would read the plugin installation location from cmake
# but this does not work currently.
-set(PLUGIN_INSTALL_LOCATION "${CMAKE_INSTALL_LIBDIR}/qt5/plugins/feedback")
+set(PLUGIN_INSTALL_LOCATION "${CMAKE_INSTALL_LIBDIR}/qt/plugins/feedback")
# get_target_property(PLUGIN_LOCATION Qt5::Feedback PLUGIN_LOCATION)
message(STATUS "Installing Qt5 feedback plugin to: ${PLUGIN_INSTALL_LOCATION}")

View file

@ -0,0 +1,30 @@
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=lomiri-deviceinfo
pkgver=0.2.2
pkgrel=1
pkgdesc='Library to detect and configure devices'
arch=('x86_64' 'armv7h' 'aarch64')
url="https://gitlab.com/ubports/development/core/deviceinfo"
license=('GPL-3.0-only')
depends=('yaml-cpp')
makedepends=('cmake' 'cmake-extras' 'git')
checkdepends=('gcovr' 'gtest')
source=("$pkgname-$pkgver.tar.gz::https://gitlab.com/ubports/development/core/deviceinfo/-/archive/$pkgver/deviceinfo-$pkgver.tar.gz")
build() {
cmake -B build -S "deviceinfo-$pkgver" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCONFIG_PATH=/etc/lomiri-deviceinfo
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha256sums=('c964cde6ce618a42829be05c48e70edb464f61d604f1e89f4c685d981e8d8aa9')

49
plasma-dialer/PKGBUILD Normal file
View file

@ -0,0 +1,49 @@
# Maintainer: Danct12 <danct12@disroot.org>
# Contributor: Furkan Kardame <tech@fkardame.com>
# Contributor: Bhushan Shah <bhush94 at gmail dot com>
pkgname=plasma-dialer
pkgver=23.01.0
pkgrel=5
pkgdesc="Phone Dialer for Plasma Mobile"
arch=('aarch64' 'x86_64')
url="https://community.kde.org/Plasma/Mobile"
license=('GPL3')
depends=(callaudiod
desktop-file-utils
kcontacts5
kdbusaddons5
kio5
kirigami-addons5
knotifications5
kpeople5
libphonenumber
modemmanager-qt5
pulseaudio-qt
qt5-feedback
qt5-quickcontrols2
qtmpris
telepathy-mission-control)
makedepends=(cmake
extra-cmake-modules
kdoctools5
plasma-wayland-protocols)
source=("https://download.kde.org/stable/plasma-mobile/$pkgver/$pkgname-$pkgver.tar.xz")
install=$pkgname.install
md5sums=('2c9795160dbe66c16510d02c0fb357d0')
build() {
cmake -B build -S $pkgname-$pkgver \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DBUILD_TESTING=OFF
cmake --build build
}
check() {
cd build
ctest --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}

View file

@ -0,0 +1,13 @@
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}

View file

@ -0,0 +1,4 @@
[Seat:*]
autologin-user=username
autologin-user-timeout=0
autologin-session=plasma-mobile

View file

@ -0,0 +1,17 @@
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=plasma-mobile-autologin
pkgver=5.20
pkgrel=1
pkgdesc='Auto login to Plasma Mobile on boot up'
arch=(any)
url='https://mobile.danctnix.org'
depends=('lightdm' 'danctnix-pm-ui-meta')
install="$pkgname.install"
source=("60-plasma-al.conf")
package() {
install -Dm644 "${srcdir}/60-plasma-al.conf" -t "${pkgdir}/usr/share/lightdm/lightdm.conf.d/"
}
md5sums=('fc0770b5d4ccb948585ff655fa72d4c5')

View file

@ -0,0 +1,3 @@
post_install() {
sed -i "s/username/$(getent passwd 1000 | cut -d: -f1)/g" /usr/share/lightdm/lightdm.conf.d/60-plasma-al.conf
}

View file

@ -0,0 +1,20 @@
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=plasma-mobile-sounds
pkgver=0.1
pkgrel=1
pkgdesc="Sound Theme for Plasma Mobile by KDE"
arch=(any)
url="https://invent.kde.org/plasma-mobile/plasma-mobile-sounds"
license=('CCPL' 'GPL')
makedepends=('cmake' 'extra-cmake-modules')
source=(https://download.kde.org/stable/plasma-mobile-sounds/$pkgver/plasma-mobile-sounds-$pkgver.tar.xz)
build() {
cmake -B build -S "$pkgname-$pkgver"
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
md5sums=('612003ae4b4269361d80ef248de1d630')

42
plasma-mobile/PKGBUILD Normal file
View file

@ -0,0 +1,42 @@
# Maintainer: Danct12 <danct12@disroot.org>
# Contributor: dodgejcr@gmail.com
# Contributor: Bhushan Shah <bhush94 at gmail dot com>
pkgname=plasma-mobile
pkgver=6.1.2
_dirver=$(echo $pkgver | cut -d. -f1-3)
pkgrel=1
pkgdesc="Plasma shell for mobile devices"
arch=('x86_64' 'armv7h' 'aarch64')
url="https://community.kde.org/Plasma/Mobile"
license=('GPL-2.0-or-later AND LGPL-2.1-or-later')
depends=(
bluez-qt
libplasma
kirigami-addons
milou
plasma-nano
plasma-nm
plasma-pa
plasma-workspace=$pkgver
)
makedepends=(
cmake
extra-cmake-modules
)
optdepends=('hfd-service: Haptic feedback')
replaces=('plasma-phone-components')
source=("https://download.kde.org/stable/plasma/$_dirver/$pkgname-$pkgver.tar.xz")
install=$pkgname.install
sha512sums=('db59764c89c91245fca60569a996a61e64e7e7eb0a869e10f65fda47dd6c9a7bb1843dfd7bc24d4d6c4cfb2a55a9d5f0a8f3e3ade6f8000edd8509a3efa5479e')
build() {
cmake -B build -S $pkgname-$pkgver \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DBUILD_TESTING=OFF
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}

View file

@ -0,0 +1,12 @@
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}

40
plasma-nano/PKGBUILD Normal file
View file

@ -0,0 +1,40 @@
# Maintainer: Danct12 <danct12@disroot.org>
# Contributor: Devin Lin <devin@kde.org>
pkgname=plasma-nano
pkgver=6.1.2
pkgrel=1
pkgdesc="A minimal plasma shell package intended for embedded devices."
arch=(x86_64 i686 i486 pentium4 arm armv6h armv7h aarch64)
url="https://invent.kde.org/plasma/plasma-nano"
license=('GPL2')
groups=()
depends=(
plasma-workspace
kwindowsystem
ki18n
kservice
kitemmodels
qt6-svg
)
makedepends=('cmake' 'extra-cmake-modules')
source=("https://download.kde.org/stable/plasma/$pkgver/$pkgname-$pkgver.tar.xz")
sha256sums=('63de451ccf182f5d9c500530c771745b013ceed73f9fdef5115a8ca646b9cab7')
prepare() {
mkdir -p build
}
build() {
cmake -B build -S "${pkgname}-${pkgver}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTING=OFF \
-DLIB_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DCMAKE_BUILD_TYPE=Release
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}

View file

@ -0,0 +1,36 @@
# Maintainer: Danct12 <danct12@disroot.org>
# Contributor: Bernhard Landauer <oberon@manjaro.org>
pkgname=plasma-phone-settings
pkgver=r75.648f779
pkgrel=1
arch=('any')
url="https://invent.kde.org/plasma-mobile/plasma-phone-settings"
license=('CC0-1.0')
pkgdesc='Configuration files for Plasma Mobile deployments'
makedepends=('git')
optdepends=('modemmanager: Telephony capabilities')
replaces=('plasma-mobile-settings')
install=$pkgname.install
source=("plasma-phone-settings::git+https://invent.kde.org/plasma-mobile/plasma-phone-settings.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
package() {
cp -rv "$pkgname/etc" "$pkgdir/"
cp -rv "$pkgname/usr" "$pkgdir/"
# Enable Pipewire for app switcher thumbnails
mkdir -p $pkgdir/usr/lib/systemd/user/default.target.wants
ln -sfv /usr/lib/systemd/user/pipewire.service \
$pkgdir/usr/lib/systemd/user/default.target.wants/pipewire.service
# Enable hfd-service for vibrations
mkdir -p $pkgdir/usr/lib/systemd/system/multi-user.target.wants
ln -sfv /usr/lib/systemd/system/hfd-service.service \
$pkgdir/usr/lib/systemd/system/multi-user.target.wants/hfd-service.service
}

View file

@ -0,0 +1,19 @@
post_upgrade() {
if [[ -e /etc/systemd/system/multi-user.target.wants/ofono.service ||
-e /usr/lib/systemd/system/multi-user.target.wants/ofono.service ]]
then
systemctl disable ofono.service
fi
if [[ -e /etc/systemd/system/default.target.wants/ofonoctl.service ||
-e /usr/lib/systemd/system/default.target.wants/ofonoctl.service ]]
then
systemctl disable ofonoctl.service
fi
systemctl enable ModemManager.service
}
post_install() {
post_upgrade
}

38
plasma-phonebook/PKGBUILD Normal file
View file

@ -0,0 +1,38 @@
# Maintainer: Danct12 <danct12@disroot.org>
# Contributor: dodgejcr@gmail.com
# Contributor: Bhushan Shah <bhush94 at gmail dot com>
pkgname=plasma-phonebook
pkgver=24.02.0
pkgrel=1
pkgdesc="Phonebook application for Mobile Devices running Plasma"
arch=('x86_64' 'armv7h' 'aarch64')
url="https://community.kde.org/Plasma/Mobile"
license=('GPL3')
depends=(
kconfig
kcontacts
kcoreaddons
kirigami
kirigami-addons
kpeople
qt6-declarative
qt6-svg
)
makedepends=(
cmake
extra-cmake-modules
)
source=("https://download.kde.org/stable/$pkgname/$pkgname-$pkgver.tar.xz")
sha256sums=('94cc358c1b7adcdabf6d1b17968c8699211e172e13059b37485f6084651b5fb8')
build() {
cmake -B build -S $pkgname-$pkgver \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DBUILD_TESTING=OFF
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}

35
plasma-settings/PKGBUILD Normal file
View file

@ -0,0 +1,35 @@
# Maintainer: Antonio Rojas <arojas@archlinux.org>
pkgname=plasma-settings
pkgver=24.02.0
pkgrel=1
pkgdesc='Settings application for Plasma Mobile'
url='https://plasma-mobile.org/'
arch=(x86_64 armv7h aarch64)
license=(GPL-2.0-or-later)
depends=(gcc-libs
glibc
kcmutils
kcoreaddons
kdbusaddons
ki18n
kirigami
kirigami-addons
qt6-base
qt6-declarative)
makedepends=(extra-cmake-modules
kservice)
source=(https://download.kde.org/stable/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
sha256sums=('b423461aa9c6dc0a7c96170261114ee9ecfe6296c97c9be8522d1942d125a5ad'
'SKIP')
validpgpkeys=(39FFA93CAE9C6AFC212AD00202325448204E452A # Carl Schwan <carl@carlschwan.eu>
0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D) # Bhushan Shah (mykolab address) <bshah@mykolab.com>
build() {
cmake -B build -S $pkgname-$pkgver
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}

48
spacebar/PKGBUILD Normal file
View file

@ -0,0 +1,48 @@
# Maintainer: Danct12 <danct12@disroot.org>
# Contributor: Bernhard Landauer <bernhard@manjaro.org>
# Contributor: dodgejcr@gmail.com
# Contributor: Bhushan Shah <bhush94 at gmail dot com>
pkgname=spacebar
pkgver=24.05.0
pkgrel=1
pkgdesc="SMS and messaging application for Mobile Devices running Plasma"
arch=('x86_64' 'armv7h' 'aarch64')
url="https://community.kde.org/Plasma/Mobile"
license=('GPL-2.0-only OR GPL-3.0-only')
depends=(
'c-ares'
'futuresql-qt6'
'kconfig'
'kcoreaddons'
'kcontacts'
'kdbusaddons'
'ki18n'
'kio'
'kirigami'
'kirigami-addons'
'knotifications'
'kpeople'
'kwindowsystem'
'libphonenumber'
'modemmanager-qt'
'qcoro-qt6'
'qt6-declarative'
)
makedepends=(
'cmake'
'extra-cmake-modules'
)
source=("http://download.kde.org/stable/$pkgname/$pkgname-$pkgver.tar.xz")
sha256sums=('1ab34a700ff3f97af0bcc9cb97fbd03bbc5a41ea4ff40144ad1ed9e30584f3f5')
build() {
cmake -B build -S $pkgname-$pkgver \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DBUILD_TESTING=OFF
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}