Contents of /smage/trunk/deprecated/shared-mime-info/shared-mime-info-2.2-r1.smage2
Parent Directory | Revision Log
Revision 17160 -
(show annotations)
(download)
Wed Oct 25 09:02:49 2023 UTC (6 months, 4 weeks ago) by niro
File size: 1102 byte(s)
Wed Oct 25 09:02:49 2023 UTC (6 months, 4 weeks ago) by niro
File size: 1102 byte(s)
-moved to 'deprecated'
1 | # $Id$ |
2 | |
3 | PNAME="shared-mime-info" |
4 | PVER="2.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.76 |
13 | >= dev-libs/libxml2-2.11" |
14 | |
15 | ALX_DEV_DEPEND=">= dev-libs/glib2-dev-2.76 |
16 | >= dev-libs/libxml2-dev-2.11" |
17 | |
18 | SDEPEND=">= virtual/pkgconfig |
19 | >= dev-util/intltool-0.50 |
20 | ${ALX_DEV_DEPEND}" |
21 | |
22 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
23 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
24 | |
25 | sminclude meson |
26 | |
27 | SRC_URI=( |
28 | https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/${PVER}/${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 | meson_setup_builddir |
39 | meson_configure $(meson_bool_false update-mimedb) || die |
40 | mninja || 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 | } |