← recipes

Commit 71bf8af7

5
files
+124
added
-0
deleted
@@ -0,0 +1,36 @@
1 +# Pagan Linux – motyw Plymouth (boot splash z logo LOKI).
2 +# Sam motyw; do wyświetlania potrzebny pakiet `plymouth` + wpięcie w initramfs
3 +# (patrz pagan-initramfs / build_initramfs w silniku).
4 +pkgname: pagan-plymouth-theme
5 +pkgver: '1.0'
6 +pkgrel: '1'
7 +pkgdesc: 'Pagan Linux – motyw boot splash Plymouth (logo LOKI + pasek postępu)'
8 +url: https://paganlinux.eu
9 +arch: x86_64
10 +license:
11 +- GPL-2.0-only
12 +
13 +depends:
14 +- plymouth
15 +makedepends: []
16 +
17 +source:
18 +- 'pagan.plymouth'
19 +- 'pagan.script'
20 +- 'logo.png'
21 +sha256sums:
22 +- SKIP
23 +- SKIP
24 +- SKIP
25 +
26 +build: |
27 + _t="${PKGDIR}/usr/share/plymouth/themes/pagan"
28 + install -d "$_t"
29 + install -m644 pagan.plymouth pagan.script logo.png "$_t/"
30 +
31 + # Domyślny motyw bootowania = pagan.
32 + install -d "${PKGDIR}/etc/plymouth"
33 + printf '[Daemon]\nTheme=pagan\nShowDelay=0\n' > "${PKGDIR}/etc/plymouth/plymouthd.conf"
34 +
35 +package: |
36 + true
0 37 new file mode 100644
1 38 Binary files /dev/null and b/gui/pagan-plymouth-theme/logo.png differ
2 39 new file mode 100644
@@ -0,0 +1,8 @@
1 +[Plymouth Theme]
2 +Name=Pagan Linux
3 +Description=Pagan Linux – boot splash (logo LOKI)
4 +ModuleName=script
5 +
6 +[script]
7 +ImageDir=/usr/share/plymouth/themes/pagan
8 +ScriptFile=/usr/share/plymouth/themes/pagan/pagan.script
0 9 new file mode 100644
@@ -0,0 +1,36 @@
1 +# Pagan Linux – skrypt motywu Plymouth (plugin "script").
2 +# Logo LOKI na środku + delikatne „oddychanie" i pasek postępu pod spodem.
3 +
4 +logo.image = Image("logo.png");
5 +logo.sprite = Sprite(logo.image);
6 +logo.sprite.SetX((Window.GetWidth() - logo.image.GetWidth()) / 2);
7 +logo.sprite.SetY((Window.GetHeight() - logo.image.GetHeight()) / 2 - 40);
8 +
9 +# Pasek postępu (cienki, w kolorze akcentu Pagan #7bd88f).
10 +bar_bg.image = Image.Threshold(Window.GetWidth() / 3, 6, 0.9, 0.9, 0.9, 0.25);
11 +bar_bg.sprite = Sprite(bar_bg.image);
12 +bar_bg.sprite.SetX((Window.GetWidth() - bar_bg.image.GetWidth()) / 2);
13 +bar_bg.sprite.SetY(Window.GetHeight() * 3 / 4);
14 +
15 +bar.image = Image.Threshold(Window.GetWidth() / 3, 6, 0.48, 0.85, 0.56, 1.0);
16 +bar.sprite = Sprite(bar.image);
17 +bar.sprite.SetX((Window.GetWidth() - bar.image.GetWidth()) / 2);
18 +bar.sprite.SetY(Window.GetHeight() * 3 / 4);
19 +
20 +fun refresh_callback () {
21 + progress = Plymouth.GetBootProgress();
22 + width = bar.image.GetWidth();
23 + bar.sprite.SetImage(bar.image.Scale(width * progress, bar.image.GetHeight()));
24 + bar.sprite.SetX((Window.GetWidth() - width * progress) / 2);
25 +}
26 +Plymouth.SetBootProgressFunction(refresh_callback);
27 +
28 +fun display_message_callback (text, boot) {
29 + # Miejsce na komunikaty (np. „Sprawdzanie systemu plików…").
30 + message.image = Image.Text(text, 0.9, 0.9, 0.9, 1.0);
31 + message.sprite = Sprite(message.image);
32 + message.sprite.SetX((Window.GetWidth() - message.image.GetWidth()) / 2);
33 + message.sprite.SetY(Window.GetHeight() * 3 / 4 + 24);
34 + message.sprite.SetOpacity(1);
35 +}
36 +Plymouth.SetDisplayMessageFunction(display_message_callback);
0 37 new file mode 100644
@@ -0,0 +1,44 @@
1 +# Pagan Linux – Plymouth (graficzny boot splash). UWAGA: receptura best-effort,
2 +# do zbudowania i wpięcia w initramfs silnika (pagan-initramfs/build_initramfs).
3 +# Motyw „pagan" (pakiet pagan-plymouth-theme) używa pluginu „script", więc
4 +# wystarczy domyślny renderer (framebuffer) – bez gtk/drm.
5 +pkgname: plymouth
6 +pkgver: '24.004.60'
7 +pkgrel: '1'
8 +pkgdesc: 'Graphical boot splash screen (Pagan boot theme)'
9 +url: 'https://www.freedesktop.org/wiki/Software/Plymouth/'
10 +arch: x86_64
11 +license:
12 +- GPL-2.0-or-later
13 +
14 +depends:
15 +- systemd
16 +- cairo
17 +- pango
18 +- freetype
19 +- libpng
20 +- xorg-libdrm
21 +makedepends:
22 +- meson
23 +- ninja
24 +- systemd
25 +- cairo
26 +- pango
27 +- freetype
28 +- libpng
29 +- xorg-libdrm
30 +- gettext
31 +- pkgconf
32 +source:
33 +- 'https://gitlab.freedesktop.org/plymouth/plymouth/-/archive/${pkgver}/plymouth-${pkgver}.tar.gz'
34 +sha256sums:
35 +- SKIP
36 +build: |
37 + cd plymouth-${pkgver}
38 + meson setup build --prefix=/usr --buildtype=release \
39 + -Dsystemd-integration=true \
40 + -Ddocumentation=false
41 + ninja -C build
42 +package: |
43 + cd plymouth-${pkgver}
44 + DESTDIR=${PKGDIR} ninja -C build install