wok annotate libextractor/receipt @ rev 24783
Up apache-ant (1.10.12)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 20 12:11:06 2022 +0000 (2022-03-20) |
parents | 71360a13cd94 |
children | d79ed38ace18 |
rev | line source |
---|---|
pascal@11554 | 1 # SliTaz package receipt. |
pascal@11554 | 2 |
pascal@11554 | 3 PACKAGE="libextractor" |
Hans-G?nter@24741 | 4 VERSION="1.11" |
pascal@11554 | 5 CATEGORY="network" |
pascal@11554 | 6 SHORT_DESC="Extract meta data from files of arbitrary type." |
pascal@11554 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15472 | 8 LICENSE="GPL2" |
Hans-G?nter@21221 | 9 WEB_SITE="https://www.gnu.org/software/libextractor" |
Hans-G?nter@21221 | 10 |
pascal@11554 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@11554 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pascal@11554 | 13 |
pascal@11554 | 14 DEPENDS="zlib" |
Hans-G?nter@24741 | 15 BUILD_DEPENDS="flac-dev gettext iso-codes jpeg-dev lcms-dev libogg-dev libtool |
Hans-G?nter@24741 | 16 zlib-dev" |
pascal@11554 | 17 |
pascal@24336 | 18 # What is the latest version available today? |
pascal@24336 | 19 current_version() |
pascal@24336 | 20 { |
pascal@24336 | 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 22 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 23 } |
pascal@24336 | 24 |
pascal@11554 | 25 # Rules to configure and make the package. |
pascal@11554 | 26 compile_rules() |
pascal@11554 | 27 { |
Hans-G?nter@21221 | 28 ./configure \ |
Hans-G?nter@21221 | 29 --prefix=/usr \ |
Hans-G?nter@21221 | 30 --mandir=/usr/share/man \ |
Hans-G?nter@21221 | 31 --localstatedir=/var \ |
Hans-G?nter@21221 | 32 $CONFIGURE_ARGS && |
Hans-G?nter@24741 | 33 make && |
Hans-G?nter@24741 | 34 make install DESTDIR=$DESTDIR |
pascal@11554 | 35 } |
pascal@11554 | 36 |
pascal@11554 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11554 | 38 genpkg_rules() |
pascal@11554 | 39 { |
pascal@11554 | 40 mkdir -p $fs/usr/lib/libextractor |
Hans-G?nter@21221 | 41 |
Hans-G?nter@24741 | 42 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@24741 | 43 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@24741 | 44 cp -a $install/usr/lib/libextractor/*.so* $fs/usr/lib/libextractor |
pascal@11554 | 45 } |