Magellan Linux

Annotation of /smage/branches/alx07x-stable/extras/shared-mime-info/shared-mime-info-1.10-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14832 - (hide annotations) (download)
Tue Aug 4 12:22:50 2020 UTC (3 years, 9 months ago) by niro
Original Path: smage/branches/alx07x-unstable/extras/shared-mime-info/shared-mime-info-1.10-r2.smage2
File size: 1078 byte(s)
-release branches/alx07x-unstable
1 niro 14364 # $Id$
2    
3     PNAME="shared-mime-info"
4     PVER="1.10"
5     PBUILD="r2"
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.48
13     >= dev-libs/libxml2-2.7"
14    
15     ALX_DEV_DEPEND=">= dev-libs/glib2-dev-2.48
16     >= dev-libs/libxml2-dev-2.7"
17    
18     SDEPEND=">= dev-util/pkgconfig-0.25
19     >= dev-util/intltool-0.50
20     ${ALX_DEV_DEPEND}"
21    
22     SRCFILE="${PNAME}-${PVER}.tar.xz"
23     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24    
25     sminclude mbuild
26    
27     SRC_URI=(
28     http://freedesktop.org/~hadess/${SRCFILE}
29     mirror://${PNAME}/${SRCFILE}
30     )
31    
32     UP2DATE="updatecmd http://freedesktop.org/~hadess/ | lasttarball xz"
33    
34     src_compile()
35     {
36     cd ${SRCDIR}
37    
38     # we update the mime database ourself
39     mconfigure --disable-update-mimedb || die
40     mmake -j1 || die
41     }
42    
43     postinstall()
44     {
45     # update mime db
46     if [ -x ${MROOT}/usr/bin/update-mime-database ]
47     then
48     echo "Updating shared mime info database ..."
49     ${MROOT}/usr/bin/update-mime-database ${MROOT}/usr/share/mime
50     fi
51     }