wok-current annotate libmediainfo/receipt @ rev 25380
updated unhide (20130526 -> 20210124)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 16:42:50 2022 +0100 (2022-07-30) |
parents | 003193eab651 |
children |
rev | line source |
---|---|
al@18634 | 1 # SliTaz package receipt. |
al@18634 | 2 |
al@18634 | 3 PACKAGE="libmediainfo" |
Hans-G?nter@23086 | 4 VERSION="19.09" |
al@18634 | 5 CATEGORY="libs" |
Hans-G?nter@23086 | 6 SHORT_DESC="Library reading metadata from media files." |
al@18634 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@18634 | 8 LICENSE="zlib/libpng" |
Hans-G?nter@23086 | 9 WEB_SITE="https://mediaarea.net/" |
Hans-G?nter@23086 | 10 |
al@18634 | 11 TARBALL="${PACKAGE}_$VERSION.tar.xz" |
al@18634 | 12 WGET_URL="${WEB_SITE}download/source/$PACKAGE/$VERSION/$TARBALL" |
al@18634 | 13 |
al@18634 | 14 DEPENDS="libcurl libmms" |
Hans-G?nter@23086 | 15 BUILD_DEPENDS="autoconf automake curl-dev libmms-dev libtool libzen" |
al@18634 | 16 |
pascal@24447 | 17 # What is the latest version available today? |
pascal@24447 | 18 current_version() |
pascal@24447 | 19 { |
pascal@24447 | 20 wget -O - https://mediaarea.net/en/MediaInfo/Download/Source 2>/dev/null | \ |
pascal@24447 | 21 sed "/latest/d;/${PACKAGE}_[0-9]/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 22 } |
pascal@24447 | 23 |
al@18634 | 24 # Rules to configure and make the package. |
al@18634 | 25 compile_rules() |
al@18634 | 26 { |
al@18634 | 27 cd Project/GNU/Library |
Hans-G?nter@23086 | 28 ./autogen.sh && |
Hans-G?nter@23086 | 29 ./configure \ |
Hans-G?nter@23086 | 30 --prefix=/usr \ |
Hans-G?nter@23086 | 31 --sysconfdir=/etc \ |
Hans-G?nter@23086 | 32 --enable-shared \ |
Hans-G?nter@23086 | 33 --enable-minimize-size \ |
Hans-G?nter@23086 | 34 --with-libcurl \ |
Hans-G?nter@23086 | 35 --with-libmms \ |
al@18634 | 36 $CONFIGURE_ARGS && |
Hans-G?nter@23086 | 37 make && |
Hans-G?nter@23086 | 38 make install |
al@18634 | 39 |
al@18634 | 40 mkdir -p $install/usr/bin |
al@18634 | 41 cp -a libmediainfo-config $install/usr/bin |
Hans-G?nter@23086 | 42 sed -i -e "s|$src/Project/GNU/Library|/usr/lib|" \ |
Hans-G?nter@23086 | 43 -e 's|.libs||' \ |
al@18634 | 44 $install/usr/bin/libmediainfo-config |
al@18634 | 45 } |
al@18634 | 46 |
al@18634 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@18634 | 48 genpkg_rules() |
al@18634 | 49 { |
al@18634 | 50 mkdir -p $fs/usr/lib |
Hans-G?nter@23086 | 51 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@18634 | 52 } |