wok view shared-mime-info/receipt @ rev 25382
updated unison (2.51.5 -> 2.52.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 17:15:58 2022 +0100 (2022-07-30) |
parents | 1a9283039d38 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="shared-mime-info"
4 VERSION="2.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Core database of common types and the *update-mime-database*."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://freedesktop.org/wiki/Software/shared-mime-info"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://gitlab.freedesktop.org/xdg/$PACKAGE/-/archive/$VERSION/$TARBALL"
14 SUGGESTED="shared-mime-info-lang"
15 DEPENDS="glib"
16 BUILD_DEPENDS="intltool itstool meson"
18 HOST_ARCH="i486 arm"
20 # Handle cross compilation. Host perl/intltool are used
21 case "$ARCH" in
22 arm*) BUILD_DEPENDS="glib-dev libxml2-dev" ;;
23 esac
25 # What is the latest version available today?
26 current_version()
27 {
28 wget -O - 'https://gitlab.freedesktop.org/xdg/shared-mime-info/-/tags?sort=updated_desc' 2>/dev/null | \
29 sed '/shared-mime-info-[0-9]/!d;/tar/!d;s|.*shared-mime-info-||;s|.tar.*||;q'
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 meson _build \
36 --prefix=/usr &&
37 ninja -C _build &&
38 ninja -C _build install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share/mime
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/share/mime/packages $fs/usr/share/mime
49 # Additional MIME-types supported by SliTaz
50 cp $stuff/*.xml $fs/usr/share/mime/packages
51 }