Annotation of /trunk/todo/kde4-env/kde4-env-4.14-r1.smage2
Parent Directory | Revision Log
Revision 23206 -
(hide annotations)
(download)
Fri Oct 31 14:37:53 2014 UTC (9 years, 10 months ago) by niro
Original Path: trunk/extras/kde4-env/kde4-env-4.14-r1.smage2
File size: 1669 byte(s)
Fri Oct 31 14:37:53 2014 UTC (9 years, 10 months ago) by niro
Original Path: trunk/extras/kde4-env/kde4-env-4.14-r1.smage2
File size: 1669 byte(s)
-ver bump to 4.14-r1
1 | niro | 23206 | # $Id$ |
2 | |||
3 | PNAME="kde4-env" | ||
4 | PVER="4.14" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | DESCRIPTION="KDE4 environment and pathes config." | ||
8 | HOMEPAGE="http://www.magellan-linux.net/" | ||
9 | |||
10 | SRCFILE="" | ||
11 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
12 | |||
13 | sminclude kde4 | ||
14 | |||
15 | # fake | ||
16 | UP2DATE="echo ${PVER}" | ||
17 | |||
18 | # unset dependencies from include | ||
19 | DEPEND="" | ||
20 | SDEPEND="" | ||
21 | SRC_URI="" | ||
22 | |||
23 | # fake | ||
24 | src_prepare() { return 0; } | ||
25 | src_compile() { return 0; } | ||
26 | postinstall() { return 0; } | ||
27 | postremove() { return 0; } | ||
28 | |||
29 | src_install() | ||
30 | { | ||
31 | install -d ${SRCDIR} || die | ||
32 | cd ${SRCDIR} | ||
33 | |||
34 | MCONFIG="/etc/env.d/49kde4" | ||
35 | mclearconfig || die | ||
36 | |||
37 | maddconfig "KDEDIRS=\"${KDEDIR}\"" || die | ||
38 | maddconfig "CONFIG_PROTECT=\"${KDEDIR}/share/config\"" || die | ||
39 | |||
40 | # this one fixes a small glitch of config protect | ||
41 | # directories with the same name in the beginning as a one in CONFIG_PROTECT | ||
42 | # are assumed as protected. but etc-update never walks along these directories | ||
43 | # and many ._cfg00xx files get installed. | ||
44 | maddconfig '# Do not remove this line, it fixes a config_protect bug' || die | ||
45 | maddconfig "CONFIG_PROTECT_MASK=\"${KDEDIR}/share/config.kcfg\"" || die | ||
46 | |||
47 | maddconfig 'KDE_MALLOC=1' || die | ||
48 | |||
49 | maddconfig '# Enable this line if your KDE is prelinked.' || die | ||
50 | maddconfig '# KDE_IS_PRELINKED=true' || die | ||
51 | |||
52 | # qt plugins | ||
53 | maddconfig "QT_PLUGIN_PATH=\"${KDEDIR}/$(mlibdir)/kde4/plugins:${QTDIR}/$(mlibdir)/qt/plugins\"" || die | ||
54 | |||
55 | # strigi home | ||
56 | maddconfig "STRIGI_HOME=\"${KDEDIR}\"" || die | ||
57 | |||
58 | if [[ ${KDEDIR} != /usr ]] | ||
59 | then | ||
60 | maddconfig "PATH=\"${KDEDIR}/bin\"" || die | ||
61 | maddconfig "ROOTPATH=\"${KDEDIR}/bin\"" || die | ||
62 | maddconfig "LDPATH=\"${KDEDIR}/$(mlibdir)\"" || die | ||
63 | fi | ||
64 | |||
65 | if [[ ${KDECONFDIR} != /etc ]] | ||
66 | then | ||
67 | maddconfig "XDG_CONFIG_DIRS=\"${KDECONFDIR}/xdg\"" || die | ||
68 | fi | ||
69 | } |