wok view libmediainfo/receipt @ rev 25672
Up minidlna (1.3.3), phpmyadmin (5.2.1), pidgin (2.14.13), redis (7.2.4), rsync (3.2.7), rust (1.76.0), screen (4.9.1), squashfs (4.6.1), squid (6.7), stunnel (5.72), tcpdump (4.99.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 26 14:07:44 2024 +0000 (10 months ago) |
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 }