wok-6.x view libsmpeg/receipt @ rev 24535
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 11:49:52 2022 +0000 (2022-02-23) |
parents | 5a902d3aec25 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libsmpeg"
4 VERSION="0.4.5"
5 CATEGORY="development"
6 SHORT_DESC="Mpeg decoding library"
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="LGPL2"
9 WEB_SITE="http://icculus.org/smpeg/"
10 TARBALL="smpeg-$VERSION.tar.xz"
11 WGET_URL="http://ravenports.elderlinux.org/distcache/$TARBALL"
13 DEPENDS="libsdl gcc-lib-base"
14 BUILD_DEPENDS="libsdl libsdl-dev gtk+-dev autoconf automake m4 subversion tar"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/smpeg-[0-9]/!d;/tar/!d;s|.*smpeg-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 chmod +x install-sh
27 ./autogen.sh
28 ./configure --prefix=/usr --disable-gtk-player $CONFIGURE_ARGS &&
29 make LDFLAGS+=-lstdc++ &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
37 cp -a $install/usr/lib/*.so* $fs/usr/lib
39 }