Magellan Linux

Contents of /smage/tags/alx-0_6_10/core/fluxbox/fluxbox-1.3.1-r7.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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