summaryrefslogtreecommitdiffstats
path: root/base/splashy/Pkgfile
blob: 5750a52c63913a568b29006b82f46be805919739 (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
# Description: Utilitaires pour produire des images lors du boot
# URL: http://splashy.alioth.debian.org/wiki/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch

name=splashy
version=0.3.13
release=3
source=(http://alioth.debian.org/frs/download.php/2691/$name-$version.tar.gz\
	http://nutyx.meticul.eu/files/patchs/$name/nutyx-attapu.jpg \
	http://nutyx.meticul.eu/files/patchs/$name/splashy \
	http://nutyx.meticul.eu/files/patchs/$name/theme.xml)

build() {
	cd $name-$version
	./configure --prefix=/usr \
	--sbindir=/sbin --libdir=/usr/lib \
	--includedir=/usr/include \
	--datarootdir=/usr/share \
	--sysconfdir=/etc
	make
	make DESTDIR=$PKG install
	mkdir -p $PKG/etc/{$name/steps_dir,rc.d{,/rcsysinit.d}}
	mv $PKG/etc/{init.d,rc.d/}
	cp ../splashy $PKG/etc/rc.d/init.d/
	chmod 754 $PKG/etc/rc.d/init.d/splashy
	ln -s ../init.d/splashy $PKG/etc/rc.d/rcsysinit.d/S00splashy
	rm $PKG/etc/lsb-base-logging.sh
	cp ../nutyx-attapu.jpg \
	$PKG/usr/share/splashy/themes/default/nutyx-attapu.jpg
	cp ../theme.xml \
	$PKG/usr/share/splashy/themes/default/theme.xml
	sed -i "s|/lib/init/rw/splashy|/etc/splashy/steps_dir|" \
	$PKG/etc/default/splashy
}