Magellan Linux

Contents of /smage/trunk/core/idesk/idesk-0.7.5-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2792 - (show annotations) (download)
Mon Aug 29 20:03:18 2011 UTC (12 years, 9 months ago) by niro
File size: 1398 byte(s)
-merged branch alx-0_6_0 into trunk
1 # $Id$
2
3 PNAME="idesk"
4 PVER="0.7.5"
5 PBUILD="r2"
6
7 PCATEGORIE="x11-misc"
8
9 DESCRIPTION="iDesk, a tool to provide desktop icons."
10 HOMEPAGE="http://idesk.sourceforge.net/"
11
12 DEPEND=">= media-libs/imlib2-1.4
13 >= media-libs/freetype-2.4
14 >= media-libs/fontconfig-2.8
15 >= dev-libs/expat-2
16 >= x11-libs/libX11-1.4
17 >= x11-libs/libXext-1.3
18 >= x11-libs/libXft-2.2
19 >= sys-libs/zlib-1.2.5"
20
21 SDEPEND=">= dev-util/pkgconfig-0.25"
22
23 SRCFILE="${PNAME}-${PVER}.tar.bz2"
24 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
25
26 ALX_ONLY_KEEP="usr/bin/idesk
27 usr/share/idesk/dot.ideskrc"
28 sminclude mtools alx-split
29
30 SRC_URI=(
31 sourceforge://${PNAME}/${SRCFILE}
32 mirror://${PNAME}/${SRCFILE}
33 mirror://${PNAME}/${PNAME}-${PVER}-glibc-2.12.patch
34 )
35
36 src_prepare()
37 {
38 munpack ${SRCFILE} || die
39 cd ${SRCDIR}
40
41 # fix build against newer glibc
42 mpatch ${PNAME}-${PVER}-glibc-2.12.patch || die
43 }
44
45 src_compile()
46 {
47 cd ${SRCDIR}
48 mconfigure || die
49 mmake || die
50 }
51
52 alx_generic_src_install()
53 {
54 cd ${SRCDIR}
55
56 # needed directories
57 minstalldir /usr/bin || die
58 minstalldir /usr/share/idesk || die
59
60 # the makefile like always suckz ...
61 minstallexec src/idesk || die
62 minstallfile examples/\* /usr/share/idesk || die
63 minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die
64
65 echo -e ${COLGREEN}" injecting custom configs"${COLDEFAULT}
66 minstalldir /usr/share/idesk || die
67 mcinjectfile dot.ideskrc /usr/share/idesk/dot.ideskrc || die
68 }