Contents of /trunk/extras/shared-mime-info/shared-mime-info-1.9-r1.smage2
Parent Directory | Revision Log
Revision 30055 -
(show annotations)
(download)
Tue Oct 24 14:08:23 2017 UTC (6 years, 11 months ago) by niro
File size: 984 byte(s)
Tue Oct 24 14:08:23 2017 UTC (6 years, 11 months ago) by niro
File size: 984 byte(s)
auto added: ver bump to 1.9-r1
1 | # $Id$ |
2 | |
3 | PNAME="shared-mime-info" |
4 | PVER="1.9" |
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.54 |
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 | } |