wok annotate shared-mime-info/receipt @ rev 22408
Add knot-dns (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 10 17:03:15 2019 +0100 (2019-12-10) |
parents | 4cd0b5691566 |
children | fdc520591ac1 |
rev | line source |
---|---|
pankso@150 | 1 # SliTaz package receipt. |
pankso@150 | 2 |
pankso@150 | 3 PACKAGE="shared-mime-info" |
Hans-G?nter@21906 | 4 VERSION="1.14" |
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@16315 | 13 HOST_ARCH="i486 arm" |
pankso@16132 | 14 |
al@18663 | 15 DEPENDS="glib" |
Hans-G?nter@21906 | 16 BUILD_DEPENDS="bash intltool itstool" |
pankso@150 | 17 |
pankso@16132 | 18 # Handle cross compilation. Host perl/intltool are used |
pankso@16132 | 19 case "$ARCH" in |
pankso@16132 | 20 arm*) BUILD_DEPENDS="glib-dev libxml2-dev" ;; |
pankso@16132 | 21 esac |
slaxemulator@10340 | 22 |
pankso@150 | 23 # Rules to configure and make the package. |
pankso@150 | 24 compile_rules() |
pankso@150 | 25 { |
al@18663 | 26 #patch -Np1 -i $stuff/pbm.patch |
Hans-G?nter@21906 | 27 |
Hans-G?nter@21906 | 28 sed -i '1d' ./autogen.sh && |
Hans-G?nter@21906 | 29 bash -c ./autogen.sh && |
al@18663 | 30 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@21906 | 31 make -j1 && |
Hans-G?nter@21906 | 32 make -j1 DESTDIR=$DESTDIR install |
pankso@150 | 33 } |
pankso@150 | 34 |
pankso@150 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@150 | 36 genpkg_rules() |
pankso@150 | 37 { |
al@17261 | 38 mkdir -p $fs/usr/share/mime |
Hans-G?nter@21906 | 39 |
Hans-G?nter@21906 | 40 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21906 | 41 cp -a $install/usr/share/mime/packages $fs/usr/share/mime |
al@17261 | 42 |
al@17261 | 43 # Additional MIME-types supported by SliTaz |
Hans-G?nter@21906 | 44 cp $stuff/*.xml $fs/usr/share/mime/packages |
pankso@150 | 45 } |