wok annotate vlc-plugin/receipt @ rev 24476
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 18 09:29:30 2022 +0000 (2022-02-18) |
parents | 15030aba419f |
children |
rev | line source |
---|---|
domcox@12852 | 1 # SliTaz package receipt. |
domcox@12852 | 2 |
domcox@12852 | 3 PACKAGE="vlc-plugin" |
domcox@12852 | 4 VERSION="2.0.0" |
domcox@12852 | 5 CATEGORY="multimedia" |
domcox@12852 | 6 SHORT_DESC="VLC Web Browser Plug-in that will allow to play video and audio" |
pascal@13025 | 7 MAINTAINER="domcox@slitaz.org" |
pascal@14996 | 8 LICENSE="LGPL2.1" |
domcox@12884 | 9 WEB_SITE="http://www.videolan.org/vlc" |
domcox@12852 | 10 SOURCE="npapi-vlc" |
domcox@12852 | 11 TARBALL="$SOURCE-$VERSION.tar.xz" |
domcox@12852 | 12 WGET_URL="http://download.videolan.org/pub/videolan/vlc/$VERSION/$TARBALL" |
domcox@12852 | 13 |
domcox@12852 | 14 DEPENDS="libvlc dbus" |
pascal@15643 | 15 BUILD_DEPENDS="firefox-dev libvlc-dev dbus-dev gtk+-dev util-linux-uuid-dev" |
domcox@14216 | 16 TAGS="browser plug-in" |
domcox@12852 | 17 |
pascal@24476 | 18 # What is the latest version available today? |
pascal@24476 | 19 current_version() |
pascal@24476 | 20 { |
pascal@24476 | 21 wget -O - http://download.videolan.org/pub/videolan/vlc/ 2>/dev/null | \ |
pascal@24476 | 22 sed '/href="[0-9]/!d;s|.*href="||;s|/.*||' | sort -Vr | sed q |
pascal@24476 | 23 } |
pascal@24476 | 24 |
domcox@12852 | 25 # Rules to configure and make the package. |
domcox@12852 | 26 compile_rules() |
domcox@12852 | 27 { |
domcox@12852 | 28 ./configure $CONFIGURE_ARGS && make && make install |
domcox@12852 | 29 } |
domcox@12852 | 30 |
domcox@12852 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@12852 | 32 genpkg_rules() |
domcox@12852 | 33 { |
domcox@14216 | 34 mkdir -p $fs/usr/lib/mozilla/plugins |
domcox@14216 | 35 cp -a $install/usr/lib/mozilla/plugins/*so $fs/usr/lib/mozilla/plugins |
domcox@12852 | 36 } |