1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
DEPENDS += "gdk-pixbuf-native"
SRC_URI += "file://psplash-colors.h \
file://psplash-bar-img.png \
file://psplash-config.h \
file://0001-Don-t-draw-progress-and-message-bar.patch \
file://psplash.service \
file://psplash-img-280.png \
file://psplash-img-320.png \
file://psplash.sh \
"
SPLASH_IMAGES = "file://psplash-img-320.png;outsuffix=default"
PACKAGE_ARCH = "${MACHINE_ARCH}"
do_configure_append () {
cd ${S}
cp ../psplash-config.h ./psplash-config.h
cp ../psplash-colors.h ./psplash-colors.h
cp ../psplash-bar-img.png ./psplash-bar.png
./make-image-header.sh ./psplash-bar.png BAR
}
do_install_append () {
install -d ${D}/lib/systemd/system/multi-user.target.wants/
cp ../psplash.service ${D}/lib/systemd/system/
ln -s ../psplash.service ${D}/lib/systemd/system/multi-user.target.wants/psplash.service
cp ../psplash.sh ${D}/etc/init.d/psplash.sh
}
# Erase psplash's pkg_postinst which masks psplash from systemd
pkg_postinst_${PN} () {
}
FILES_${PN} += "/lib/systemd/system/"