git » kde5-pkgbuilds.git » commit 033ff97

Update order; add orderize from base, add git-it-up

author Urja (ARMLFS builder)
2024-06-19 07:30:11 UTC
committer Urja (ARMLFS builder)
2024-06-19 07:30:11 UTC
parent ce63372c7abd2a93d52f97d913544e6f43fbdb2f

Update order; add orderize from base, add git-it-up

built-order +0 -239
git-it-up.sh +51 -0
order +225 -0
orderize.py +23 -0

diff --git a/built-order b/built-order
index 3f796b7..e69de29 100644
--- a/built-order
+++ b/built-order
@@ -1,239 +0,0 @@
-qt5-base
-qt5-declarative
-qt5-tools
-qt5-translations
-phonon
-polkit-qt
-libdbusmenu-qt
-plasma-wayland-protocols
-qt5-svg
-qt5-charts
-kuserfeedback
-qt5-doc
-attica
-kapidox
-karchive
-kcodecs
-kconfig
-kcoreaddons
-qt5-x11extras
-kdbusaddons
-kdnssd
-qt5-wayland
-kguiaddons
-ki18n
-kidletime
-kimageformats
-kitemmodels
-kitemviews
-kplotting
-kwidgetsaddons
-kwindowsystem
-networkmanager-qt
-solid
-sonnet
-threadweaver
-kauth
-kcompletion
-kcrash
-kdoctools
-kpty
-kunitconversion
-kconfigwidgets
-kservice
-kglobalaccel
-kpackage
-kdesu
-kemoticons
-kiconthemes
-kjobwidgets
-qt5-multimedia
-qt5-speech
-knotifications
-ktextwidgets
-kxmlgui
-kbookmarks
-qca
-kwallet
-kded
-kio
-kdeclarative
-kcmutils
-qt5-quickcontrols
-qt5-quickcontrols2
-qt5-graphicaleffects
-kirigami2
-syndication
-knewstuff
-frameworkintegration
-kinit
-kparts
-kactivities
-qt5-xmlpatterns
-syntax-highlighting
-ktexteditor
-kdesignerplugin
-kwayland
-plasma-framework
-kpeople
-bluez-qt
-poppler-data
-poppler
-kdegraphics-mobipocket
-kfilemetadata
-baloo
-breeze-icons
-kactivities-stats
-krunner
-oxygen-icons
-qqc2-desktop-style
-prison
-kjs
-kdelibs4support
-qt5-script
-avahi
-projectm
-vlc
-phonon-vlc
-kross
-kholidays
-khtml
-qt5-webchannel
-qt5-location
-qt5-webengine
-signond
-libaccounts-qt
-signon-ui
-signon-kwallet-extension
-signon-plugin-oauth2
-qt5-websockets
-qcoro
-kaccounts-integration
-accounts-qml-module
-purpose
-kcalendarcore
-kcontacts
-kquickcharts
-knotifyconfig
-kdav
-ark
-mlt
-qt5-networkauth
-kdenlive
-libkexiv2
-kmix
-kdsoap
-grantlee
-khelpcenter
-kio-extras
-konsole
-libkdcraw
-okular
-ksanecore
-libksane
-kolourpaint
-kcolorpicker
-kimageannotator
-kdecoration
-libkscreen
-breeze
-libksysguard
-breeze-gtk
-layer-shell-qt
-kscreenlocker
-oxygen
-libqaccessibilityclient
-kinfocenter
-libcamera
-pipewire
-kpipewire
-wireplumber
-kwin
-ksystemstats
-oxygen-sounds
-kactivitymanagerd
-milou
-plasma-integration
-kio-fuse
-plasma-workspace
-kde-cli-tools
-plasma-disks
-bluedevil
-kde-gtk-config
-khotkeys
-kmenuedit
-qt5-sensors
-kscreen
-kwallet-pam
-kwayland-integration
-kwrited
-plasma-nm
-plasma-pa
-plasma-workspace-wallpapers
-polkit-kde-agent
-powerdevil
-systemsettings
-plasma-desktop
-kgamma
-ksshaskpass
-plasma-vault
-plasma-browser-integration
-plasma-firewall
-plasma-systemmonitor
-qqc2-breeze-style
-qt5-virtualkeyboard
-aura-browser
-kdeplasma-addons
-plank-player
-kirigami-addons
-kpeoplevcard
-pulseaudio-qt
-kdeconnect
-plasma-welcome
-drkonqi
-plasma-meta
-libcamera
-libcamera
-pipewire
-kpipewire
-wireplumber
-plasma-workspace
-kwin
-spectacle
-powerdevil
-powerdevil
-opencsg
-pyqt-builder
-qt5-connectivity
-qt5-serialport
-qt5-remoteobjects
-qt5-quick3d
-pyqt5
-qscintilla
-openscad
-qt5-datavis3d
-qt5-scxml
-python-ply
-qt5-3d
-soqt
-python-pivy
-pyside2
-qtkeychain
-nextcloud-client
-gnuplot
-freecad
-keepassxc
-inkscape
-inkscape
-libreoffice-still
-quazip
-kseexpr
-gegl
-libmypaint
-libreoffice-still
-kate
-krita
-armlfs-kde-skel
-libktorrent
-ktorrent
-transmission
diff --git a/git-it-up.sh b/git-it-up.sh
new file mode 100755
index 0000000..a6644c2
--- /dev/null
+++ b/git-it-up.sh
@@ -0,0 +1,51 @@
+#!/bin/bash
+set -e
+
+if [ "$(whoami)" != "builder" ]; then
+	echo "Will re-exec self ($0) as builder"
+	sleep 0.2s
+	L="$@"
+	exec su builder -c "$0 $L"
+fi
+
+gititup() {
+	cd $1
+pkgver=$(grep "pkgver=" PKGBUILD | head -1 | cut -d '=' -f 2)
+	echo $1 $pkgver
+	[ -e .githidden ] && mv .githidden .git
+	if [ ! -e .gitignore ]; then
+	cat > .gitignore << "EOF"
+/src/
+/pkg/
+EOF
+	fi
+	if [ -e .git ]; then
+		BRANCH="$(git branch --show-current)"
+		if [[ -z "$BRANCH" ]]; then
+			if git branch | grep -q main; then
+				git branch -m main arch-main
+			fi
+			git switch -c main
+		fi
+		if [[ -n "$(git status --porcelain)" ]]; then
+			git add .
+			git commit -m "$1 $pkgver"
+		fi
+	else
+		git init .
+		git add .
+		git commit -m "Initial $1 $pkgver"
+	fi
+}
+
+L="$@"
+if [[ -z "$L" ]]; then
+	L="$(find -mindepth 1 -maxdepth 1 -type d)"
+fi
+
+for d in $L; do
+	d=$(basename $d)
+	if [[ -O "$d" ]] && grep -q $d order; then
+		(gititup $d)
+	fi
+done
diff --git a/order b/order
index 5e97989..aff2a68 100644
--- a/order
+++ b/order
@@ -1,3 +1,228 @@
 plasma-meta
 phonon
 qt5-base
+qt5-declarative
+qt5-tools
+qt5-translations
+polkit-qt
+libdbusmenu-qt
+plasma-wayland-protocols
+qt5-svg
+qt5-charts
+kuserfeedback
+qt5-doc
+attica
+kapidox
+karchive
+kcodecs
+kconfig
+kcoreaddons
+qt5-x11extras
+kdbusaddons
+kdnssd
+qt5-wayland
+kguiaddons
+ki18n
+kidletime
+kimageformats
+kitemmodels
+kitemviews
+kplotting
+kwidgetsaddons
+kwindowsystem
+networkmanager-qt
+solid
+sonnet
+threadweaver
+kauth
+kcompletion
+kcrash
+kdoctools
+kpty
+kunitconversion
+kconfigwidgets
+kservice
+kglobalaccel
+kpackage
+kdesu
+kemoticons
+kiconthemes
+kjobwidgets
+qt5-multimedia
+qt5-speech
+knotifications
+ktextwidgets
+kxmlgui
+kbookmarks
+qca
+kwallet
+kded
+kio
+kdeclarative
+kcmutils
+qt5-quickcontrols
+qt5-quickcontrols2
+qt5-graphicaleffects
+kirigami2
+syndication
+knewstuff
+frameworkintegration
+kinit
+kparts
+kactivities
+qt5-xmlpatterns
+syntax-highlighting
+ktexteditor
+kdesignerplugin
+kwayland
+plasma-framework
+kpeople
+bluez-qt
+poppler-data
+poppler
+kdegraphics-mobipocket
+kfilemetadata
+baloo
+breeze-icons
+kactivities-stats
+krunner
+oxygen-icons
+qqc2-desktop-style
+prison
+kjs
+kdelibs4support
+qt5-script
+avahi
+projectm
+vlc
+phonon-vlc
+kross
+kholidays
+khtml
+qt5-webchannel
+qt5-location
+qt5-webengine
+signond
+libaccounts-qt
+signon-ui
+signon-kwallet-extension
+signon-plugin-oauth2
+qt5-websockets
+qcoro
+kaccounts-integration
+accounts-qml-module
+purpose
+kcalendarcore
+kcontacts
+kquickcharts
+knotifyconfig
+kdav
+ark
+mlt
+qt5-networkauth
+kdenlive
+libkexiv2
+kmix
+kdsoap
+grantlee
+khelpcenter
+kio-extras
+konsole
+libkdcraw
+okular
+ksanecore
+libksane
+kolourpaint
+kcolorpicker
+kimageannotator
+kdecoration
+libkscreen
+breeze
+libksysguard
+breeze-gtk
+layer-shell-qt
+kscreenlocker
+oxygen
+libqaccessibilityclient
+kinfocenter
+libcamera
+pipewire
+kpipewire
+wireplumber
+kwin
+ksystemstats
+oxygen-sounds
+kactivitymanagerd
+milou
+plasma-integration
+kio-fuse
+plasma-workspace
+kde-cli-tools
+plasma-disks
+bluedevil
+kde-gtk-config
+khotkeys
+kmenuedit
+qt5-sensors
+kscreen
+kwallet-pam
+kwayland-integration
+kwrited
+plasma-nm
+plasma-pa
+plasma-workspace-wallpapers
+polkit-kde-agent
+powerdevil
+systemsettings
+plasma-desktop
+kgamma
+ksshaskpass
+plasma-vault
+plasma-browser-integration
+plasma-firewall
+plasma-systemmonitor
+qqc2-breeze-style
+qt5-virtualkeyboard
+aura-browser
+kdeplasma-addons
+plank-player
+kirigami-addons
+kpeoplevcard
+pulseaudio-qt
+kdeconnect
+plasma-welcome
+drkonqi
+spectacle
+opencsg
+pyqt-builder
+qt5-connectivity
+qt5-serialport
+qt5-remoteobjects
+qt5-quick3d
+pyqt5
+qscintilla
+openscad
+qt5-datavis3d
+qt5-scxml
+python-ply
+qt5-3d
+soqt
+python-pivy
+pyside2
+qtkeychain
+nextcloud-client
+gnuplot
+freecad
+keepassxc
+inkscape
+libreoffice-still
+quazip
+kseexpr
+gegl
+libmypaint
+kate
+krita
+armlfs-kde-skel
+libktorrent
+ktorrent
+transmission
diff --git a/orderize.py b/orderize.py
new file mode 100755
index 0000000..e8ad76e
--- /dev/null
+++ b/orderize.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python3
+
+import os
+import sys
+
+fnordered = "order"
+fnmess = "built-order"
+
+def arrf(fn):
+    with open(fn, 'r') as f:
+         return [ l.strip() for l in f.readlines() ]
+
+order = arrf(fnordered)
+mess = arrf(fnmess)
+neworder = []
+
+for l in mess:
+    if l in order:
+        continue
+    order.append(l)
+    neworder.append(l)
+
+print('\n'.join(neworder))