wok-6.x view icecast/receipt @ rev 24540
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 16:54:57 2022 +0000 (2022-02-23) |
parents | dac0b283fc41 |
children | ad9008f821da |
line source
1 # SliTaz package receipt.
3 PACKAGE="icecast"
4 VERSION="2.4.4"
5 CATEGORY="multimedia"
6 SHORT_DESC="An opensource alternative to shoutcast that supports mp3, ogg (vorbis/theora) and aac streaming"
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://icecast.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://downloads.xiph.org/releases/$PACKAGE/$TARBALL"
14 DEPENDS="libogg libtheora libvorbis libxml2 libxslt"
15 BUILD_DEPENDS="libogg-dev libtheora-dev libvorbis-dev libxml2-dev libxslt-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://gitlab.xiph.org/xiph/icecast-server/-/tags 2>/dev/null | \
21 sed '/item-title/!d;s|.*">v||;s|<.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc \
30 --disable-yp \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/etc $fs
43 cp -a $install/usr/share/icecast $fs/usr/share
44 }