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