wok annotate file/receipt @ rev 23753
updated xine-lib, xine-lib-dev and xine fonts again (1.2.9 -> 1.2.10)
author | Hans-G?nter Theisgen |
---|---|
date | Fri May 01 16:24:55 2020 +0100 (2020-05-01) |
parents | 240fb3120638 |
children | b569b85b0fb9 |
rev | line source |
---|---|
erjo@170 | 1 # SliTaz package receipt. |
erjo@170 | 2 |
erjo@170 | 3 PACKAGE="file" |
Hans-G?nter@22758 | 4 VERSION="5.38" |
pankso@211 | 5 CATEGORY="system-tools" |
Hans-G?nter@20919 | 6 SHORT_DESC="Determines file type using 'magic' numbers." |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15379 | 8 LICENSE="BSD" |
pascal@20947 | 9 WEB_SITE="https://github.com/file/file" |
Hans-G?nter@20919 | 10 |
erjo@170 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@11289 | 12 WGET_URL="ftp://ftp.astron.com/pub/file/$TARBALL" |
pankso@12982 | 13 |
Hans-G?nter@22758 | 14 DEPENDS="libmagic zlib" |
Hans-G?nter@22758 | 15 BUILD_DEPENDS="python python-setuptools zlib-dev" |
Hans-G?nter@22758 | 16 |
Hans-G?nter@20919 | 17 HOST_ARCH="i486 arm" |
erjo@170 | 18 |
Hans-G?nter@20919 | 19 # @maintainer: Please, update also: libmagic, libmagic-dev, python-magic. |
al@17217 | 20 |
pankso@15953 | 21 # Handle cross compilation. python is installed in a ARM cook env. |
pankso@15953 | 22 case "$ARCH" in |
pankso@15953 | 23 arm) BUILD_DEPENDS="" ;; |
pankso@15953 | 24 esac |
pankso@15953 | 25 |
erjo@170 | 26 # Rules to configure and make the package. |
erjo@170 | 27 compile_rules() |
erjo@170 | 28 { |
Hans-G?nter@22758 | 29 sed -i 's/, has_debug_info = 1/, has_debug_info = 0/' \ |
Hans-G?nter@22758 | 30 src/readelf.c |
Hans-G?nter@22758 | 31 |
Hans-G?nter@22758 | 32 ./configure \ |
Hans-G?nter@22758 | 33 --datarootdir=/usr/share \ |
pankso@12982 | 34 $CONFIGURE_ARGS && |
Hans-G?nter@20919 | 35 make -j 1 && |
Hans-G?nter@20919 | 36 make install && |
pascal@14901 | 37 cd python && |
pascal@14901 | 38 python setup.py build && |
pascal@14901 | 39 python setup.py install --root=$DESTDIR |
erjo@170 | 40 } |
erjo@170 | 41 |
erjo@170 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@170 | 43 genpkg_rules() |
erjo@170 | 44 { |
pankso@12982 | 45 mkdir -p $fs/usr/share |
Hans-G?nter@22758 | 46 |
Hans-G?nter@22758 | 47 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22758 | 48 cp -a $install/usr/share/misc $fs/usr/share |
erjo@170 | 49 } |
pankso@15953 | 50 |
pankso@15953 | 51 # Be sure it as cross compile. |
pankso@15953 | 52 testsuite() |
pankso@15953 | 53 { |
pankso@15953 | 54 readelf -h $install/usr/bin/file |
pankso@15953 | 55 } |