wok annotate shared-mime-info/receipt @ rev 24299
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 15 15:21:40 2022 +0000 (2022-01-15) |
parents | 5ea0ce1cecc0 |
children | 1a9283039d38 |
rev | line source |
---|---|
pankso@150 | 1 # SliTaz package receipt. |
pankso@150 | 2 |
pankso@150 | 3 PACKAGE="shared-mime-info" |
Hans-G?nter@23643 | 4 VERSION="1.15" |
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@21907 | 12 WGET_URL="https://github.com/freedesktop/xdg-$PACKAGE/archive/Release-${VERSION/./-}.tar.gz" |
pankso@16132 | 13 |
al@18663 | 14 DEPENDS="glib" |
Hans-G?nter@23643 | 15 BUILD_DEPENDS="autoconf automake bash intltool itstool" |
Hans-G?nter@23643 | 16 |
Hans-G?nter@23643 | 17 HOST_ARCH="i486 arm" |
pankso@150 | 18 |
pankso@16132 | 19 # Handle cross compilation. Host perl/intltool are used |
pankso@16132 | 20 case "$ARCH" in |
pankso@16132 | 21 arm*) BUILD_DEPENDS="glib-dev libxml2-dev" ;; |
pankso@16132 | 22 esac |
slaxemulator@10340 | 23 |
pascal@24055 | 24 current_version() |
pascal@24055 | 25 { |
pascal@24299 | 26 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 27 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 28 } |
pascal@24055 | 29 |
pankso@150 | 30 # Rules to configure and make the package. |
pankso@150 | 31 compile_rules() |
pankso@150 | 32 { |
al@18663 | 33 #patch -Np1 -i $stuff/pbm.patch |
Hans-G?nter@21906 | 34 |
Hans-G?nter@23643 | 35 # remove #!/bin/sh from autogen.sh, since bash is required: |
Hans-G?nter@23643 | 36 sed -i '1d' ./autogen.sh |
Hans-G?nter@23643 | 37 |
Hans-G?nter@21906 | 38 bash -c ./autogen.sh && |
al@18663 | 39 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@21906 | 40 make -j1 && |
Hans-G?nter@21906 | 41 make -j1 DESTDIR=$DESTDIR install |
pankso@150 | 42 } |
pankso@150 | 43 |
pankso@150 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@150 | 45 genpkg_rules() |
pankso@150 | 46 { |
al@17261 | 47 mkdir -p $fs/usr/share/mime |
Hans-G?nter@21906 | 48 |
Hans-G?nter@21906 | 49 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21906 | 50 cp -a $install/usr/share/mime/packages $fs/usr/share/mime |
al@17261 | 51 |
al@17261 | 52 # Additional MIME-types supported by SliTaz |
Hans-G?nter@21906 | 53 cp $stuff/*.xml $fs/usr/share/mime/packages |
pankso@150 | 54 } |