summaryrefslogtreecommitdiffstats
path: root/base/qingy/Pkgfile
blob: 7c9de7de331d52f2502d347af37f69270b300fdc (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
# Description: Remplace getty en mode Frame buffer
# URL: http://qingy.sourceforge.net/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch

name=qingy
version=0.9.9
release=5
source=(http://downloads.sourceforge.net/$name/$name-$version.tar.bz2\
	startx ChatIrssi NaviLinks MidnightCommander\
	http://kiao.no-ip.info/NuTyX/files/qingy-nutyx.tar.bz2)

build() {
	cd  $name-$version
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--sysconfdir=/etc \
		--enable-static=qingy-DirectFB \
		--infodir=/usr/share/info \
		--enable-x-support=no \
		--enable-pam=no \
		--enable-static-build
		
	make
	make DESTDIR=$PKG install
	if [ -f $PKG/usr/share/info/dir ]; then
		rm  $PKG/usr/share/info/dir
	fi
	sed -i "s|/usr/X11R6/bin|/usr/bin|" $PKG/etc/qingy/settings
	sed -i "s|/etc/X11/Sessions|/usr/share/xsessions|" $PKG/etc/qingy/settings 
	echo "root Soyez prudent, vous avez tous les droits..." >\
	$PKG/etc/qingy/welcomes
	for i  in ChatIrssi NaviLinks MidnightCommander
	do
		install -m755 ../$i \
		$PKG/etc/qingy/sessions/$i
	done
	mkdir $PKG/usr/bin
	install -m755 ../startx \
	$PKG/usr/bin/startx.qingy
	cp -a ../default \
	$PKG/usr/share/qingy/themes/
	chown -R root:root $PKG
}