Contents of /trunk/extras/shared-mime-info/shared-mime-info-1.2-r1.smage2
Parent Directory | Revision Log
Revision 20312 -
(show annotations)
(download)
Tue Dec 3 09:53:23 2013 UTC (10 years, 9 months ago) by niro
File size: 846 byte(s)
Tue Dec 3 09:53:23 2013 UTC (10 years, 9 months ago) by niro
File size: 846 byte(s)
-rebuild mime-database after install and fixed SRCFILE
1 | # $Id$ |
2 | |
3 | PNAME="shared-mime-info" |
4 | PVER="1.2" |
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.38 |
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 | postinstall() |
31 | { |
32 | # update mime db |
33 | if [ -x ${MROOT}/usr/bin/update-mime-database ] |
34 | then |
35 | echo "Updating shared mime info database ..." |
36 | ${MROOT}/usr/bin/update-mime-database ${MROOT}/usr/share/mime |
37 | fi |
38 | } |