wok-next diff libextractor/receipt @ rev 20529
Up libblockdev (2.16), nspr (4.18), openssh (7.6p1), udisks2 (2.7.6).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Mar 24 15:55:55 2018 +0200 (2018-03-24) |
parents | 6c3718ca17b6 |
children | 0ec6086e21d6 |
line diff
1.1 --- a/libextractor/receipt Sat Nov 09 17:34:23 2013 +0000 1.2 +++ b/libextractor/receipt Sat Mar 24 15:55:55 2018 +0200 1.3 @@ -1,34 +1,67 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="libextractor" 1.8 -VERSION="0.6.2" 1.9 -CATEGORY="network" 1.10 -SHORT_DESC="Extract meta data from files of arbitrary type." 1.11 +VERSION="1.6" 1.12 +CATEGORY="utilities" 1.13 +SHORT_DESC="Extract meta data from files of arbitrary type" 1.14 MAINTAINER="pascal.bellard@slitaz.org" 1.15 LICENSE="GPL2" 1.16 +WEB_SITE="https://www.gnu.org/software/libextractor/" 1.17 + 1.18 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.19 -WEB_SITE="http://www.gnu.org/software/libextractor" 1.20 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.21 1.22 -DEPENDS="zlib" 1.23 -BUILD_DEPENDS="libtool gettext zlib-dev flac-dev libogg-dev lcms-dev" 1.24 +BUILD_DEPENDS="libtool iso-codes libvorbis-dev flac-dev zlib-dev bzip2-dev \ 1.25 +libmpeg2-dev libjpeg-turbo-dev tiff-dev libarchive-dev exiv2-dev giflib-dev \ 1.26 +libmagic-dev tidy-dev gettext glib-dev gdk-pixbuf-dev libgsf-dev ffmpeg-dev" 1.27 +SPLIT="libextractor-archive libextractor-exiv2 libextractor-flac \ 1.28 +libextractor-gif libextractor-jpeg libextractor-mime libextractor-mpeg \ 1.29 +libextractor-ogg libextractor-ole2 libextractor-thumbnailffmpeg \ 1.30 +libextractor-thumbnailgtk libextractor-tiff libextractor libextractor-dev" 1.31 1.32 -# Rules to configure and make the package. 1.33 -compile_rules() 1.34 -{ 1.35 - cd $src 1.36 - ./configure --prefix=/usr --mandir=/usr/share/man \ 1.37 - --localstatedir=/var \ 1.38 +compile_rules() { 1.39 + ./configure \ 1.40 + --enable-shared \ 1.41 + --disable-static \ 1.42 $CONFIGURE_ARGS && 1.43 make -j 1 && 1.44 - make DESTDIR=$DESTDIR install 1.45 + make install 1.46 } 1.47 1.48 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.49 -genpkg_rules() 1.50 -{ 1.51 - mkdir -p $fs/usr/lib/libextractor 1.52 - cp -a $install/usr/bin $fs/usr 1.53 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.54 - cp -a $install/usr/lib/libextractor/*.so* $fs/usr/lib/libextractor 1.55 +genpkg_rules() { 1.56 + case $PACKAGE in 1.57 + libextractor) 1.58 + copy @std @rm 1.59 + DEPENDS="bzlib libltdl zlib" 1.60 + ;; 1.61 + *-dev) 1.62 + copy @dev 1.63 + DEPENDS="${SPLIT/$PACKAGE/} acl-dev attr-dev bzip2-dev curl-dev \ 1.64 + exiv2-dev expat-dev ffmpeg-dev flac-dev gdk-pixbuf-dev giflib-dev \ 1.65 + glib-dev libjpeg-turbo-dev libarchive-dev libffi-dev libgsf-dev \ 1.66 + libidn2-dev libmagic-dev libmpeg2-dev libogg-dev libpng16-dev \ 1.67 + libssh2-dev libtool libvorbis-dev libxml2-dev lz4-lib lzo-dev \ 1.68 + nettle-dev openssl-dev pcre-dev tiff-dev util-linux-blkid-dev \ 1.69 + util-linux-mount-dev util-linux-uuid-dev xz-dev zlib-dev" 1.70 + ;; 1.71 + *) 1.72 + copy libextractor_${PACKAGE/libextractor-/}.so 1.73 + CAT="utilities|${PACKAGE/libextractor-/} plugin" 1.74 + ;; 1.75 + esac 1.76 + 1.77 + case $PACKAGE in 1.78 + *-archive) DEPENDS="libarchive";; 1.79 + *-exiv2) DEPENDS="exiv2";; 1.80 + *-flac) DEPENDS="flac";; 1.81 + *-gif) DEPENDS="giflib";; 1.82 + *-jpeg) DEPENDS="libjpeg-turbo";; 1.83 + *-mime) DEPENDS="libmagic";; 1.84 + *-mpeg) DEPENDS="libmpeg2";; 1.85 + *-ogg) DEPENDS="libogg libvorbis";; 1.86 + *-ole2) DEPENDS="glib libextractor libgsf libxml2";; 1.87 + *ffmpeg) DEPENDS="ffmpeg libmagic";; 1.88 + *gtk) DEPENDS="gdk-pixbuf glib libmagic";; 1.89 + *-tiff) DEPENDS="tiff";; 1.90 + esac 1.91 }