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