# Tanım: Kernel modulleri desteğine sahip bir grafik önyükleme başlatma ekranı
# URL: http://www.freedesktop.org/wiki/Software/Plymouth
# Paketçi: milisarge
# Gerekler: xorg-libdrm pango docbook-xsl gtk2
# Grup: sistem tasarım

isim=plymouth
surum=0.8.8
devir=1

#kaynak=(https://www.freedesktop.org/software/plymouth/releases/$isim-$surum.tar.xz
kaynak=(http://www.freedesktop.org/software/$isim/releases/$isim-$surum.tar.bz2
		https://raw.githubusercontent.com/yakar/milis-linux-wallpapers/master/milis-linux-tree.png
		plymouthd.conf)

derle() {
	cd $isim-$surum
	./configure --prefix=/usr \
	--exec-prefix=/usr \
	--libdir=/usr/lib \
	--libexecdir=/usr/lib \
	--infodir=/usr/info \
	--sysconfdir=/etc \
	--localstatedir=/var \
	--mandir=/usr/man \
	--enable-tracing \
	--without-rhgb-compat-link \
	--with-gdm-autostart-file=yes \
	--without-system-root-install \
	--program-prefix="" \
	--program-suffix="" \
	--with-logo=/usr/share/plymouth/milis.png \
	--enable-gtk --enable-gdm-transition --enable-pango \
	--enable-systemd-integration=no \
	--disable-documentation
	make || return 1

	make install DESTDIR=$PKG || exit 1
	
	rm -f "$PKG"/usr/lib/plymouth/*.la
	#rm -rf $PKG/*.wants
	
	install -Dm644 "$SRC/milis-linux-tree.png" "$PKG/usr/share/plymouth/milis.png"
	install -Dm644 "$SRC/plymouthd.conf" "$PKG/etc/plymouth/plymouthd.conf"
	cd /sources/milis.git/ayarlar/servisler
	make DESTDIR=$PKG kur-plymouth
}
