wok-6.x annotate freetuxtv/receipt @ rev 24500
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 19 19:01:32 2022 +0000 (2022-02-19) |
parents | 7d8f0ec43ab3 |
children |
rev | line source |
---|---|
pascal@14053 | 1 # SliTaz package receipt. |
pascal@14053 | 2 |
pascal@14053 | 3 PACKAGE="freetuxtv" |
pascal@20673 | 4 VERSION="0.6.8" |
pascal@14053 | 5 CATEGORY="network" |
pascal@14053 | 6 SHORT_DESC="FreetuxTV is a free GTK+ WebTV and Web Radio player for Linux." |
pascal@14053 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
pascal@20673 | 9 WEB_SITE="https://github.com/freetuxtv/freetuxtv" |
pascal@14053 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20673 | 11 WGET_URL="https://github.com/freetuxtv/freetuxtv/archive/$TARBALL" |
pascal@14053 | 12 |
pascal@14053 | 13 DEPENDS="gtk+ glib dbus-glib libsqlite libvlc libcurl libnotify" |
pascal@14053 | 14 BUILD_DEPENDS="gtk+-dev glib-dev dbus-glib-dev libsqlite sqlite-dev \ |
pascal@20675 | 15 libvlc-dev libvlc curl-dev libnotify-dev intltool file automake libtool" |
pascal@14053 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/freetuxtv-\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@14053 | 23 # Rules to configure and make the package. |
pascal@14053 | 24 compile_rules() |
pascal@14053 | 25 { |
pascal@20675 | 26 sed -i 's|_box_new(.*HORIZONTAL|_hbox_new(FALSE|' src/*.c |
pascal@20675 | 27 sed -i 's|_box_new(.*VERTICAL|_vbox_new(FALSE|' src/*.c |
pascal@20675 | 28 ./autogen.sh |
pascal@14063 | 29 ./configure --prefix=/usr \ |
pascal@14053 | 30 $CONFIGURE_ARGS && |
pascal@14053 | 31 make && |
pascal@14053 | 32 make DESTDIR=$DESTDIR install |
pascal@14053 | 33 } |
pascal@14053 | 34 |
pascal@14053 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14053 | 36 genpkg_rules() |
pascal@14053 | 37 { |
pascal@14063 | 38 mkdir -p $fs/usr/share/applications |
pascal@14053 | 39 cp -a $install/* $fs |
pascal@14063 | 40 cp $stuff/freetuxtv.desktop $fs/usr/share/applications |
pascal@14053 | 41 } |