summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--.gitignore4
-rw-r--r--01-change-systemd-unit.patch19
-rw-r--r--PKGBUILD42
-rw-r--r--initcpio_hook5
-rw-r--r--initcpio_install14
6 files changed, 105 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fe7da1769c1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = plymouth-lite-rbp-git
+ pkgdesc = Plymouth-lite patched and ready for Raspberry Pi
+ pkgver = r10.76e20e8
+ pkgrel = 1
+ url = https://github.com/T4d3o/Plymouth-lite
+ arch = armv7h
+ license = GPL2
+ makedepends = git
+ provides = plymouth-lite-rbp
+ conflicts = plymouth-lite-rbp
+ source = plymouth-lite-rbp::git+https://github.com/T4d3o/Plymouth-lite.git
+ source = 01-change-systemd-unit.patch
+ source = initcpio_hook
+ source = initcpio_install
+ md5sums = SKIP
+ md5sums = 709d24411c2fcd62b2eccbfc98010b25
+ md5sums = 86dcab222ab4be45fc96d2792ff91809
+ md5sums = e13f4e22ee8e28eef85028c9307bfc3f
+
+pkgname = plymouth-lite-rbp-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..3b72de0ed29
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.pkg.tar.xz
+pkg
+plymouth-lite-rbp
+src
diff --git a/01-change-systemd-unit.patch b/01-change-systemd-unit.patch
new file mode 100644
index 00000000000..49b9820f24a
--- /dev/null
+++ b/01-change-systemd-unit.patch
@@ -0,0 +1,19 @@
+diff --git a/systemd/plymouth-lite-start.service b/systemd/plymouth-lite-start.service
+index bed69ac..fb377f3 100644
+--- a/systemd/plymouth-lite-start.service
++++ b/systemd/plymouth-lite-start.service
+@@ -2,9 +2,12 @@
+ Description=Show Plymouth-lite Start Screen
+ DefaultDependencies=no
+ After=systemd-vconsole-setup.service
+-Before=sysinit.target
++Before=kodi.service
+
+ [Service]
+ Type=oneshot
+ RemainAfterExit=yes
+-ExecStart=/usr/bin/ply-image /usr/share/plymouth/splash.png
++ExecStart=/usr/bin/echo 0 > /sys/class/graphics/fbcon/cursor_blink ; /usr/bin/echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink ; /usr/bin/chvt 7 ; /usr/bin/ply-image
++
++[Install]
++WantedBy=multi-user.target
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..21118262d5e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Sergey Slipchenko <faergeek@gmail.com>
+pkgname=plymouth-lite-rbp-git
+pkgver=r10.76e20e8
+pkgrel=1
+pkgdesc="Plymouth-lite patched and ready for Raspberry Pi"
+arch=('armv7h')
+url="https://github.com/T4d3o/Plymouth-lite"
+license=('GPL2')
+makedepends=('git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=('plymouth-lite-rbp::git+https://github.com/T4d3o/Plymouth-lite.git'
+ '01-change-systemd-unit.patch' 'initcpio_hook' 'initcpio_install')
+md5sums=('SKIP'
+ '709d24411c2fcd62b2eccbfc98010b25'
+ '86dcab222ab4be45fc96d2792ff91809'
+ 'e13f4e22ee8e28eef85028c9307bfc3f')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/${pkgname%-git}"
+ patch -Np1 -i "$srcdir/01-change-systemd-unit.patch"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ make DESTDIR="$pkgdir/" install
+ mkdir -p $pkgdir/usr/lib/systemd/system/
+ install -Dm0644 systemd/* $pkgdir/usr/lib/systemd/system/
+ install -D -m644 "${srcdir}"/initcpio_hook "${pkgdir}"/usr/lib/initcpio/hooks/plymouth-lite
+ install -D -m644 "${srcdir}"/initcpio_install "${pkgdir}"/usr/lib/initcpio/install/plymouth-lite
+}
diff --git a/initcpio_hook b/initcpio_hook
new file mode 100644
index 00000000000..3b1310ced37
--- /dev/null
+++ b/initcpio_hook
@@ -0,0 +1,5 @@
+#!/usr/bin/ash
+
+run_hook() {
+ ply-image /usr/share/plymouth/splash.png &> /dev/null
+}
diff --git a/initcpio_install b/initcpio_install
new file mode 100644
index 00000000000..450b8f206f7
--- /dev/null
+++ b/initcpio_install
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+build() {
+ add_binary "ply-image"
+ add_file "/usr/share/plymouth/splash.png"
+ add_runscript
+}
+
+help() {
+ cat <<HELPEOF
+This hook shows plymouth-lite image
+HELPEOF
+}
+