Magellan Linux

Annotation of /branches/R11-stable/extras/shared-mime-info/shared-mime-info-1.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21851 - (hide annotations) (download)
Mon Jul 21 09:59:51 2014 UTC (9 years, 9 months ago) by niro
File size: 984 byte(s)
-release branches/R11-stable
1 niro 21379 # $Id$
2    
3     PNAME="shared-mime-info"
4     PVER="1.3"
5     PBUILD="r1"
6    
7     PCAT="x11-misc"
8    
9     DESCRIPTION="This package contains the core database of common types and the *update-mime-database* command used to extend it."
10     HOMEPAGE="http://freedesktop.org/wiki/Software/shared-mime-info/"
11    
12     DEPEND=">= dev-libs/glib2-2.40
13     >= dev-libs/libxml2-2.7"
14    
15     SDEPEND=">= dev-util/pkgconfig-0.25
16     >= dev-util/intltool-0.50"
17    
18     SRCFILE="${PNAME}-${PVER}.tar.xz"
19     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20    
21     sminclude mbuild
22    
23     SRC_URI=(
24     http://freedesktop.org/~hadess/${SRCFILE}
25     mirror://${PNAME}/${SRCFILE}
26     )
27    
28     UP2DATE="updatecmd http://freedesktop.org/~hadess/ | lasttarball xz"
29    
30     src_compile()
31     {
32     cd ${SRCDIR}
33    
34     # we update the mime database ourself
35     mconfigure --disable-update-mimedb || die
36     mmake -j1 || die
37     }
38    
39     postinstall()
40     {
41     # update mime db
42     if [ -x ${MROOT}/usr/bin/update-mime-database ]
43     then
44     echo "Updating shared mime info database ..."
45     ${MROOT}/usr/bin/update-mime-database ${MROOT}/usr/share/mime
46     fi
47     }