wok-current view shared-mime-info/receipt @ rev 24966
updated nettle and nettle-dev (3.5.1 -> 3.7.3)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 25 07:28:45 2022 +0100 (2022-04-25) |
parents | 5ea0ce1cecc0 |
children | 1a9283039d38 |
line source
1 # SliTaz package receipt.
3 PACKAGE="shared-mime-info"
4 VERSION="1.15"
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://github.com/freedesktop/xdg-$PACKAGE/archive/Release-${VERSION/./-}.tar.gz"
14 DEPENDS="glib"
15 BUILD_DEPENDS="autoconf automake bash intltool itstool"
17 HOST_ARCH="i486 arm"
19 # Handle cross compilation. Host perl/intltool are used
20 case "$ARCH" in
21 arm*) BUILD_DEPENDS="glib-dev libxml2-dev" ;;
22 esac
24 current_version()
25 {
26 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
27 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 #patch -Np1 -i $stuff/pbm.patch
35 # remove #!/bin/sh from autogen.sh, since bash is required:
36 sed -i '1d' ./autogen.sh
38 bash -c ./autogen.sh &&
39 ./configure $CONFIGURE_ARGS &&
40 make -j1 &&
41 make -j1 DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share/mime
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/share/mime/packages $fs/usr/share/mime
52 # Additional MIME-types supported by SliTaz
53 cp $stuff/*.xml $fs/usr/share/mime/packages
54 }