Annotation of /smage/trunk/core/slim/slim-1.3.2-r1.smage2
Parent Directory | Revision Log
Revision 1176 -
(hide annotations)
(download)
Fri Jan 28 17:52:35 2011 UTC (13 years, 4 months ago) by niro
Original Path: smage/trunk/extras/slim/slim-1.3.2-r1.smage2
File size: 2422 byte(s)
Fri Jan 28 17:52:35 2011 UTC (13 years, 4 months ago) by niro
Original Path: smage/trunk/extras/slim/slim-1.3.2-r1.smage2
File size: 2422 byte(s)
-branding: added mcore background image and panel for slim
1 | niro | 1103 | # $Id$ |
2 | |||
3 | PNAME="slim" | ||
4 | PVER="1.3.2" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="x11-misc" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="SLiM is a Desktop-independent graphical login manager for X11." | ||
11 | HOMEPAGE="http://slim.berlios.de/" | ||
12 | |||
13 | niro | 1157 | DEPEND=">= x11-libs/libXmu-1.1 |
14 | >= x11-libs/libX11-1.4 | ||
15 | >= x11-libs/libXpm-3.9 | ||
16 | >= x11-libs/libXft-2.2 | ||
17 | >= media-libs/libpng-1.4 | ||
18 | >= media-libs/libjpeg-8 | ||
19 | >= x11-apps/xauth-1.0.5" | ||
20 | niro | 1103 | |
21 | niro | 1157 | SDEPEND=">= dev-util/pkgconfig-0.25 |
22 | >= x11-proto/xproto-7.0.20 | ||
23 | niro | 1103 | >= sys-apps/sed-4" |
24 | |||
25 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
26 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
27 | |||
28 | MCORE_ONLY_KEEP="etc/slim.conf usr/bin/slim usr/share/slim/themes/default" | ||
29 | niro | 1173 | sminclude mtools mcore-split |
30 | niro | 1103 | |
31 | SRC_URI=( | ||
32 | http://download.berlios.de/${PNAME}/${SRCFILE} | ||
33 | mirror://${PNAME}/${SRCFILE} | ||
34 | niro | 1165 | mirror://${PNAME}/${PNAME}-${PVER}-restart-xserver-if-killed.patch |
35 | mirror://${PNAME}/${PNAME}-${PVER}-fix-keyboard-in-tty-from-which-slim-is-lauched.patch | ||
36 | mirror://${PNAME}/${PNAME}-${PVER}-fix-SIGTERM-freeze.patch | ||
37 | niro | 1103 | ) |
38 | |||
39 | UP2DATE="updatecmd_berlios ${PNAME}" | ||
40 | |||
41 | src_prepare() | ||
42 | { | ||
43 | munpack ${SRCFILE} || die | ||
44 | cd ${SRCDIR} | ||
45 | |||
46 | niro | 1165 | # restart the xserver |
47 | mpatch ${PNAME}-${PVER}-restart-xserver-if-killed.patch || die | ||
48 | |||
49 | # fix keyboard issues | ||
50 | mpatch ${PNAME}-${PVER}-fix-keyboard-in-tty-from-which-slim-is-lauched.patch || die | ||
51 | |||
52 | # fix a sigterm segfault | ||
53 | mpatch ${PNAME}-${PVER}-fix-SIGTERM-freeze.patch || die | ||
54 | |||
55 | niro | 1103 | # fix cflags and ldflags |
56 | sed -i \ | ||
57 | -e "s:^\(CFLAGS=\).*:\1-I. $(pkg-config --cflags freetype2 libpng x11):" \ | ||
58 | -e "s:^\(LDFLAGS=\).*:\1$(pkg-config --libs xft freetype2 libpng xmu) -ljpeg -lz -lm -lcrypt -lrt:" \ | ||
59 | -e "s:^\(MANDIR=\).*:\1/usr/share/man:" \ | ||
60 | Makefile || die | ||
61 | niro | 1165 | |
62 | # rename sim.lock to sim.pid and enable daemon mode by default | ||
63 | sed -i -e "s:/var/run/slim.lock:/var/run/slim.pid:" \ | ||
64 | -e "s:# daemon.*:daemon\tyes:" \ | ||
65 | slim.conf || die | ||
66 | niro | 1103 | } |
67 | |||
68 | src_compile() | ||
69 | { | ||
70 | cd ${SRCDIR} | ||
71 | mmake || die | ||
72 | } | ||
73 | |||
74 | niro | 1162 | mcore_generic_src_install() |
75 | niro | 1103 | { |
76 | cd ${SRCDIR} | ||
77 | mmake DESTDIR=${BINDIR} install || die | ||
78 | niro | 1162 | |
79 | # install a custom slim.conf | ||
80 | echo -e ${COLGREEN}" injecting custom slim-configs"${COLDEFAULT} | ||
81 | niro | 1163 | mcinjectfile slim.conf /etc || die |
82 | niro | 1173 | minstalldir /etc/rc.d/init.d || die |
83 | mcinjectexec slim.rc /etc/rc.d/init.d/slim || die | ||
84 | niro | 1176 | mcinjectfile panel.png /usr/share/slim/themes/default/panel.png |
85 | mcinjectfile mcore2.png /usr/share/slim/themes/default/background.png | ||
86 | if [ -f ${BINDIR}/usr/share/slim/themes/default/background.jpg ] | ||
87 | then | ||
88 | rm ${BINDIR}/usr/share/slim/themes/default/background.png || die | ||
89 | fi | ||
90 | niro | 1103 | } |