wok view freetuxtv/receipt @ rev 25599
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 16 13:38:12 2023 +0000 (16 months ago) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="freetuxtv"
4 VERSION="0.6.8"
5 CATEGORY="network"
6 SHORT_DESC="FreetuxTV is a free GTK+ WebTV and Web Radio player for Linux."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://github.com/freetuxtv/freetuxtv"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://github.com/freetuxtv/freetuxtv/archive/$TARBALL"
13 DEPENDS="gtk+ glib dbus-glib libsqlite libvlc libcurl libnotify"
14 BUILD_DEPENDS="gtk+-dev glib-dev dbus-glib-dev libsqlite sqlite-dev \
15 libvlc-dev libvlc curl-dev libnotify-dev intltool file automake libtool"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|_box_new(.*HORIZONTAL|_hbox_new(FALSE|' src/*.c
28 sed -i 's|_box_new(.*VERTICAL|_vbox_new(FALSE|' src/*.c
29 ./autogen.sh
30 ./configure --prefix=/usr \
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/applications
40 cp -a $install/* $fs
41 cp $stuff/freetuxtv.desktop $fs/usr/share/applications
42 }