Contents of /smage/trunk/core/fluxbox/fluxbox-1.3.5-r1.smage2
Parent Directory | Revision Log
Revision 4571 -
(show annotations)
(download)
Sat Mar 16 23:52:16 2013 UTC (11 years, 3 months ago) by niro
File size: 3392 byte(s)
Sat Mar 16 23:52:16 2013 UTC (11 years, 3 months ago) by niro
File size: 3392 byte(s)
auto added: ver bump to 1.3.5-r1
1 | # $Id$ |
2 | |
3 | PNAME="fluxbox" |
4 | PVER="1.3.5" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="x11-wm" |
8 | |
9 | DESCRIPTION="fluxbox is yet another windowmanager for X based on blackbox." |
10 | HOMEPAGE="http://www.fluxbox.org/" |
11 | |
12 | DEPEND=">= x11-libs/libXpm-3.5 |
13 | >= x11-libs/libXrandr-1.3 |
14 | >= x11-libs/libXinerama-1.1 |
15 | >= media-libs/freetype-2 |
16 | >= media-libs/imlib2-1.4 |
17 | >= x11-apps/xmessage-1.03 |
18 | >= x11-libs/libXft-2.2 |
19 | >= sys-libs/libstdc++-4.7 |
20 | >= x11-terms/eterm-0.9.6" |
21 | |
22 | SDEPEND=">= sys-dev/automake-4 |
23 | >= sys-dev/autoconf-5" |
24 | |
25 | PROVIDE="virtual/windowmanager" |
26 | |
27 | SRCFILE="${PNAME}-${PVER/_/}.tar.bz2" |
28 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}" |
29 | |
30 | ALX_PKG_KEEP="usr/bin/fluxbox |
31 | usr/bin/startfluxbox |
32 | usr/bin/fbsetroot |
33 | usr/bin/fbsetbg |
34 | usr/share/fluxbox/styles/carp |
35 | usr/share/fluxbox/keys |
36 | usr/share/fluxbox/init |
37 | usr/share/fluxbox/apps |
38 | usr/share/fluxbox/overlay |
39 | usr/share/fluxbox/menu |
40 | usr/share/fluxbox/windowmenu |
41 | usr/share/fluxbox/wallpaper.png" |
42 | sminclude xorg mtools alx-split |
43 | |
44 | SRC_URI=( |
45 | sourceforge://${PNAME}/${SRCFILE} |
46 | mirror://${PNAME}/${SRCFILE} |
47 | mirror://${PNAME}/${PNAME}-1.3.1-alx.patch |
48 | mirror://${PNAME}/${PNAME}-1.3.1-no-xmodmap.patch |
49 | ) |
50 | |
51 | UP2DATE="updatecmd_sourceforge ${PNAME}" |
52 | |
53 | src_prepare() |
54 | { |
55 | munpack ${SRCFILE} || die |
56 | cd ${SRCDIR} |
57 | |
58 | # fix fbsetbg, that it runs with alx, which has no ldd installed |
59 | mpatch ${PNAME}-1.3.1-alx.patch || die |
60 | |
61 | # no xmodmap is provided by alx |
62 | mpatch ${PNAME}-1.3.1-no-xmodmap.patch || die |
63 | |
64 | # enable antialias by default |
65 | echo "session.screen0.antialias: true" >> data/init.in || die |
66 | |
67 | # all styles should use fbsetroot |
68 | for style in ${SRCDIR}/data/styles/* |
69 | do |
70 | [[ -f ${style} ]] || continue |
71 | sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style} |
72 | done |
73 | } |
74 | |
75 | src_compile() |
76 | { |
77 | cd ${SRCDIR} |
78 | |
79 | mconfigure \ |
80 | --sysconfdir=/etc/X11/${PNAME} \ |
81 | --disable-nls \ |
82 | --enable-imlib2 \ |
83 | --disable-xpm \ |
84 | --disable-kde \ |
85 | --disable-gnome \ |
86 | --enable-xft \ |
87 | --enable-xinerama \ |
88 | --disable-fribidi \ |
89 | --disable-debug \ |
90 | || die |
91 | |
92 | mmake || die |
93 | } |
94 | |
95 | alx_generic_src_install() |
96 | { |
97 | cd ${SRCDIR} |
98 | |
99 | # needed directories |
100 | minstalldir /usr/share/fluxbox || die |
101 | minstalldir /usr/share/xsessions || die |
102 | |
103 | mmake DESTDIR=${BINDIR} install || die |
104 | |
105 | # create gnome xsession file |
106 | echo "[Desktop Entry] |
107 | Encoding=UTF-8 |
108 | Name=Fluxbox |
109 | Comment=This session logs you into Fluxbox |
110 | Exec=startfluxbox |
111 | TryExec=startfluxbox |
112 | Icon= |
113 | Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die |
114 | |
115 | minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die |
116 | |
117 | echo -e ${COLGREEN}" injecting custom fluxbox-configs"${COLDEFAULT} |
118 | mcinjectfile menu /usr/share/fluxbox || die |
119 | mcinjectfile init /usr/share/fluxbox || die |
120 | mcinjectfile keys /usr/share/fluxbox || die |
121 | mcinjectfile apps /usr/share/fluxbox || die |
122 | # custom carp theme |
123 | mcinjectfile carp.cfg /usr/share/fluxbox/styles/carp/theme.cfg || die |
124 | # custom wallpaper |
125 | mcinjectfile alx-thinclient-wallpaper.png /usr/share/fluxbox/wallpaper.png |
126 | |
127 | # enable the wallpaper |
128 | MCONFIG="/usr/share/fluxbox/styles/carp/theme.cfg" |
129 | maddconfig 'background.pixmap: /usr/share/fluxbox/wallpaper.png' || die |
130 | |
131 | # set carp as default theme |
132 | sed -i 's:^\(session.styleFile\:\).*:\1\t/usr/share/fluxbox/styles/carp:' \ |
133 | ${BINDIR}/usr/share/fluxbox/init || die |
134 | } |
135 | |
136 | postinstall_fluxbox() |
137 | { |
138 | # remove startup script with possibly enabled xmodmap from home directories |
139 | if [[ -f ${MROOT}/home ]] |
140 | then |
141 | find ${MROOT}/home -type f -name startup -exec rm '{}' ';' |
142 | fi |
143 | } |