wok-next diff file/receipt @ rev 21143
Small updates.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 25 15:37:19 2019 +0200 (2019-01-25) |
parents | add40df8725d |
children | cedb302b9195 |
line diff
1.1 --- a/file/receipt Wed Dec 05 12:49:06 2018 +0200 1.2 +++ b/file/receipt Fri Jan 25 15:37:19 2019 +0200 1.3 @@ -11,10 +11,29 @@ 1.4 1.5 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.6 WGET_URL="https://github.com/file/file/archive/FILE${VERSION/./_}.tar.gz" 1.7 +TARBALL_SHA1="2a00782750d015cf654ace2e53239e02d28c09e9" 1.8 1.9 BUILD_DEPENDS="automake libtool zlib-dev python python3" 1.10 SPLIT="libmagic libmagic-dev python-magic python3-magic" 1.11 1.12 +COPY_std="file" 1.13 +COPY_libmagic="*.so.* magic.mgc" 1.14 +COPY_libmagic_dev="@dev *.so" 1.15 +COPY_python_magic="python2*/" 1.16 +COPY_python3_magic="python3*/" 1.17 + 1.18 +DEPENDS_std="libmagic" 1.19 +DEPENDS_libmagic="zlib" 1.20 +DEPENDS_libmagic_dev="libmagic" 1.21 +DEPENDS_python_magic="$PACKAGE python" 1.22 +DEPENDS_python3_magic="$PACKAGE python" 1.23 + 1.24 +CAT_libmagic="libs|shared library" 1.25 +CAT_python_magic="development|Python2 bindings" 1.26 +CAT_python3_magic="development|Python3 bindings" 1.27 + 1.28 +TAGS_std="LFS" 1.29 + 1.30 compile_rules() { 1.31 autoreconf -f -i && 1.32 ./configure \ 1.33 @@ -39,32 +58,3 @@ 1.34 testsuite() { 1.35 readelf -h $install/usr/bin/file 1.36 } 1.37 - 1.38 -genpkg_rules() { 1.39 - case $PACKAGE in 1.40 - file) 1.41 - copy file magic.mgc 1.42 - DEPENDS="libmagic" 1.43 - TAGS="LFS" 1.44 - ;; 1.45 - libmagic) 1.46 - copy *.so* 1.47 - CAT="libs|library" 1.48 - DEPENDS="zlib" 1.49 - ;; 1.50 - libmagic-dev) 1.51 - copy @dev 1.52 - DEPENDS="libmagic" 1.53 - ;; 1.54 - python-magic) 1.55 - copy python2*/ 1.56 - CAT="development|Python bindings" 1.57 - DEPENDS="file python" 1.58 - ;; 1.59 - python3-magic) 1.60 - copy python3*/ 1.61 - CAT="development|Python bindings" 1.62 - DEPENDS="file python" 1.63 - ;; 1.64 - esac 1.65 -}