summaryrefslogtreecommitdiffstats
path: root/plymouth/Pkgfile
blob: 002b33ece0636ca37dc844cf6b9a6307da26aad1 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Description: A graphical boot splash screen with kernel mode-setting support.
# URL: http://freedesktop.org/wiki/Software/Plymouth
# Maintainer: NuTyX core team
# Packager: piernov <piernov@piernov.org>
# Depends on: systemd, libdrm, pango
# Run on: systemd,libdrm,pango

name=plymouth
version=0.8.6.1
release=1
source=(http://www.freedesktop.org/software/$name/releases/$name-$version.tar.bz2
	arch-logo.png
	gdm-plymouth.service
	kdm-plymouth.service
	kdm-unpatched-plymouth.service
	lxdm-plymouth.service
	plymouthd.conf
	system-release
	systemd-unit-dir.patch)

build() {
	cd $name-$version

	# Change SYSTEMD_UNIT_DIR to /usr/lib/systemd/system
	patch -p0 -i "$SRC/systemd-unit-dir.patch"

	sed -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:g' -i src/libply-splash-graphics/ply-image.c

	./configure --prefix=/usr \
		--exec-prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--libdir=/usr/lib \
		--libexecdir=/usr/lib \
		--enable-tracing \
		--without-rhgb-compat-link \
		--with-gdm-autostart-file=yes \
		--with-logo=/usr/share/plymouth/arch-logo.png \
		--with-background-start-color-stop=0x000000 \
		--with-background-end-color-stop=0x4D4D4D \
		--enable-systemd-integration \
		--without-system-root-install
	make
	make DESTDIR=$PKG install

	install -Dm644 $SRC/arch-logo.png $PKG/usr/share/plymouth/arch-logo.png
	install -Dm644 $SRC/system-release $PKG/etc/system-release
	install -Dm644 $SRC/plymouthd.conf $PKG/etc/plymouth/plymouthd.conf

	# Plymouth<->systemd integration, units for DMs
	install -Dm644 $SRC/kdm-plymouth.service $PKG/usr/lib/systemd/system/kdm-plymouth.service
	install -Dm644 $SRC/gdm-plymouth.service $PKG/usr/lib/systemd/system/gdm-plymouth.service
	install -Dm644 $SRC/lxdm-plymouth.service $PKG/usr/lib/systemd/system/lxdm-plymouth.service
	install -Dm644 $SRC/kdm-unpatched-plymouth.service $PKG/usr/lib/systemd/system/kdm-unpatched-plymouth.service
}