Magellan Linux

Annotation of /smage/branches/alx07x-unstable/core/fluxbox/fluxbox-1.3.7-r12.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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