wok-6.x view libdvdnav/receipt @ rev 24699
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 19:47:29 2022 +0000 (2022-03-13) |
parents | ede1d184d5c5 |
children | ac0d01890066 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libdvdnav"
4 VERSION="6.0.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Library for navigating a DVD."
7 MAINTAINER="mojo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://dvdnav.mplayerhq.hu/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://downloads.videolan.org/pub/videolan/$PACKAGE/$VERSION/$TARBALL"
14 BUILD_DEPENDS="libdvdread libdvdread-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://downloads.videolan.org/pub/videolan/$PACKAGE/last 2>/dev/null | \
20 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 $CONFIGURE_ARGS &&
28 make &&
29 make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 }