Contents of /smage/trunk/extras/shared-mime-info/shared-mime-info-1.10-r2.smage2
Parent Directory | Revision Log
Revision 14364 -
(show annotations)
(download)
Thu Jul 9 11:20:07 2020 UTC (4 years, 2 months ago) by niro
File size: 1078 byte(s)
Thu Jul 9 11:20:07 2020 UTC (4 years, 2 months ago) by niro
File size: 1078 byte(s)
auto added: ver bump to 1.10-r2
1 | # $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 | } |