wok annotate file/receipt @ rev 21746
updated qrencode and qrencode-dev again (3.1.1 -> 4.0.2)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 14 16:14:44 2019 +0100 (2019-06-14) |
parents | 63cdeb5a1e77 |
children | fa097cfdd98e |
rev | line source |
---|---|
erjo@170 | 1 # SliTaz package receipt. |
erjo@170 | 2 |
erjo@170 | 3 PACKAGE="file" |
Hans-G?nter@20919 | 4 VERSION="5.36" |
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 |
pankso@12982 | 14 DEPENDS="zlib libmagic" |
pascal@21580 | 15 BUILD_DEPENDS="zlib-dev python python-setuptools" |
Hans-G?nter@20919 | 16 HOST_ARCH="i486 arm" |
erjo@170 | 17 |
Hans-G?nter@20919 | 18 # @maintainer: Please, update also: libmagic, libmagic-dev, python-magic. |
al@17217 | 19 |
pankso@15953 | 20 # Handle cross compilation. python is installed in a ARM cook env. |
pankso@15953 | 21 case "$ARCH" in |
pankso@15953 | 22 arm) BUILD_DEPENDS="" ;; |
pankso@15953 | 23 esac |
pankso@15953 | 24 |
erjo@170 | 25 # Rules to configure and make the package. |
erjo@170 | 26 compile_rules() |
erjo@170 | 27 { |
pascal@19852 | 28 sed -i 's/, has_debug_info = 1/, has_debug_info = 0/' src/readelf.c |
pankso@10365 | 29 ./configure \ |
pankso@10365 | 30 --datarootdir=/usr/share \ |
pankso@12982 | 31 $CONFIGURE_ARGS && |
Hans-G?nter@20919 | 32 make -j 1 && |
Hans-G?nter@20919 | 33 make install && |
pascal@14901 | 34 cd python && |
pascal@14901 | 35 python setup.py build && |
pascal@14901 | 36 python setup.py install --root=$DESTDIR |
erjo@170 | 37 } |
erjo@170 | 38 |
erjo@170 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@170 | 40 genpkg_rules() |
erjo@170 | 41 { |
pankso@12982 | 42 mkdir -p $fs/usr/share |
pankso@12982 | 43 cp -a $install/usr/bin $fs/usr |
pankso@12982 | 44 cp -a $install/usr/share/misc $fs/usr/share |
erjo@170 | 45 } |
pankso@15953 | 46 |
pankso@15953 | 47 # Be sure it as cross compile. |
pankso@15953 | 48 testsuite() |
pankso@15953 | 49 { |
pankso@15953 | 50 readelf -h $install/usr/bin/file |
pankso@15953 | 51 } |