Magellan Linux

Contents of /trunk/extras/xdg-utils/xdg-utils-1.1.0_20140205-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20748 - (show annotations) (download)
Wed Feb 5 10:43:56 2014 UTC (10 years, 4 months ago) by niro
File size: 1191 byte(s)
-fixed build of git version
1 # $Id$
2
3 PNAME="xdg-utils"
4 PVER="1.1.0_20140205"
5 PBUILD="r1"
6
7 PCAT="x11-apps"
8
9 DESCRIPTION="Xdg-utils is a set of command line tools that assist applications with a variety of desktop integration tasksA tool for automating interactive applications."
10 HOMEPAGE="http://portland.freedesktop.org/"
11
12 DEPEND=">= x11-apps/xprop-1.2
13 >= x11-apps/xset-1.2
14 >= x11-misc/shared-mime-info-0.90
15 >= dev-util/desktop-file-utils-0.15"
16
17 SRCFILE="${PNAME}-${PVER}.tar.bz2"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mbuild mtools
21 msetfeature "!check"
22
23 SRC_URI=( mirror://${PNAME}/${SRCFILE} )
24
25 # fake
26 UP2DATE="echo ${PVER}"
27
28 src_compile()
29 {
30 cd ${SRCDIR}
31 mconfigure || die
32 # remove prebuild stuff (git version only)
33 mmake -C scripts scripts-clean || die
34 # build (git version only)
35 mmake -C scripts scripts man || die
36 }
37
38 src_install()
39 {
40 cd ${SRCDIR}
41 mmake DESTDIR=${BINDIR} install || die
42
43 # install default xdg data dirs
44 minstalldir /etc/env.d || die
45 cat > ${BINDIR}/etc/env.d/30xdg-local << EOF
46 XDG_DATA_DIRS="/usr/local/share"
47 EOF
48
49 cat > ${BINDIR}/etc/env.d/90xdg-system << EOF
50 XDG_DATA_DIRS="/usr/share"
51 XDG_CONFIG_DIRS="/etc/xdg"
52 EOF
53
54 minstalldocs ChangeLog LICENSE TODO README || die
55 }