13 |
|
|
14 |
sminclude mtools |
sminclude mtools |
15 |
|
|
16 |
|
case ${PNAME} in |
17 |
|
thunar-*-plugin) URISUBDIR="thunar-plugins" ;; |
18 |
|
xfce4-*-plugin) URISUBDIR="panel-plugins" ;; |
19 |
|
parole|xfburn|xfce4-{dict,mixer,notifyd}|orage|ristretto|taskmanager) URISUBDIR="apps" ;; |
20 |
|
*) URISUBDIR="xfce" ;; |
21 |
|
esac |
22 |
|
|
23 |
# default SRC_URIs |
# default SRC_URIs |
24 |
SRC_URI=( |
SRC_URI=( |
25 |
${SRC_URI[*]} |
${SRC_URI[*]} |
26 |
http://mocha.xfce.org/archive/src/xfce/${PNAME}/${PVER%.*}/${SRCFILE} |
http://mocha.xfce.org/archive/src/${URISUBDIR}/${PNAME}/$(echo ${PVER} | cut -d. -f1-2)/${SRCFILE} |
27 |
|
http://archive.xfce.org/src/${URISUBDIR}/${PNAME}/$(echo ${PVER} | cut -d. -f1-2)/${SRCFILE} |
28 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
29 |
) |
) |
30 |
|
|
31 |
# special functions needed by postinstall|postremove |
# special functions needed by postinstall|postremove |
32 |
SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} xfce_update_desktop_db xfce_update_mime_db xfce_update_icon_cache" |
SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} xfce_update_desktop_db xfce_update_mime_db xfce_update_icon_cache xfce_postinstall xfce_postremove" |
33 |
|
|
34 |
xfce_configure() |
xfce_configure() |
35 |
{ |
{ |
36 |
local configure_opts="$@" |
local configure_opts="$@" |
37 |
mconfigure ${configure_opts} || die |
mconfigure \ |
38 |
|
--libexecdir=/usr/$(mlibdir)/${PNAME} \ |
39 |
|
--with-html-dir=/usr/share/doc/${PNAME}-${PVER}/html \ |
40 |
|
--disable-debug \ |
41 |
|
--disable-static \ |
42 |
|
${configure_opts} \ |
43 |
|
|| die |
44 |
} |
} |
45 |
|
|
46 |
xfce_src_prepare() |
xfce_src_prepare() |
51 |
xfce_src_compile() |
xfce_src_compile() |
52 |
{ |
{ |
53 |
cd ${SRCDIR} |
cd ${SRCDIR} |
54 |
xfce_configure --disable-debug --disable-static || die |
|
55 |
|
xfce_configure || die |
56 |
mmake ${XFCE_MAKE_OPTS} || die |
mmake ${XFCE_MAKE_OPTS} || die |
57 |
} |
} |
58 |
|
|