summaryrefslogtreecommitdiffstats
path: root/base/splashy/Pkgfile
blob: 4043df3dd279b8372e04acc4c245da6c2148d64f (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
# 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\
	splashy nutyx-attapu.jpg 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
}