wok-current view vlc/receipt @ rev 24462
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 16 21:07:01 2022 +0000 (2022-02-16) |
parents | 73fd97cf0fa8 |
children | 5926178cd6fa |
line source
1 # SliTaz package receipt.
3 PACKAGE="vlc"
4 VERSION="3.0.10"
5 CATEGORY="multimedia"
6 TAGS="audio video multimedia movie player"
7 SHORT_DESC="MPEG, VCD/DVD, and DivX player."
8 MAINTAINER="jozee@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.videolan.org/vlc/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://download.videolan.org/pub/videolan/$PACKAGE/$VERSION/$TARBALL"
15 DEPENDS="gcc83-lib-base libQtCore libQtGui libvlc"
16 BUILD_DEPENDS="alsa-lib-dev cairo-dev dbus-dev expat-dev ffmpeg-dev flac-dev
17 fluidsynth-dev fribidi-dev gcc83 gcc83-lib-base gettext gmp-dev gnutls-dev
18 hicolor-icon-theme jack-audio-connection-kit-dev libarchive-dev
19 libavc1394-dev libcaca-dev libcddb-dev libdvdread-dev libdvdnav-dev
20 libegl-mesa libgnutls libmad-dev libmodplug-dev libmpeg2-dev libmtp-dev
21 libraw1394-dev librsvg-dev libsamplerate-dev libsdl-image-dev libsecret-dev
22 libtheora-dev libtheora-enc libupnp-dev libvorbis-dev libxml2-dev lua5.1-dev
23 ncurses-dev opus-dev pango-dev protobuf-dev Qt4-dev speex-dev taglib-dev tar
24 util-linux-uuid-dev x264-dev x265-dev xcb-util-dev xcb-util-keysyms-dev yasm
25 zvbi-dev"
27 COOKOPTS="!fixdesktops"
29 # @maintainer: Please update also: libvlc and libvlc-dev
31 # What is the latest version available today?
32 current_version()
33 {
34 wget -O - http://www.videolan.org/vlc/download-sources.html 2>/dev/null | \
35 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
36 }
38 compile_rules()
39 {
40 [ -s /var/lib/dbus/machine-id ] || dbus-uuidgen > /var/lib/dbus/machine-id
41 [ -e /usr/bin/luac ] || ln -s luac5.1 /usr/bin/luac
42 # export ncurses paths
43 export NCURSES_CFLAGS="-I/usr/include"
44 export NCURSES_LIBS="-L/lib -lncurses -ltinfo"
45 export CC=gcc-83 CXX=g++-83 BUILDCC=gcc-83
47 ./configure \
48 --prefix=/usr \
49 --disable-pulse \
50 --disable-a52 \
51 --disable-sout \
52 --disable-libgcrypt \
53 --enable-ncurses \
54 --enable-run-as-root \
55 $CONFIGURE_ARGS &&
56 make &&
57 make install
58 [ -L /usr/bin/luac ] && rm -f /usr/bin/luac
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 mkdir -p $fs/usr/share/pixmaps
66 cp -a $install/usr/bin $fs/usr
67 cp -a $install/usr/share/$PACKAGE $fs/usr/share
69 #Remove extra icons
70 rm $fs/usr/share/$PACKAGE/*.ico
72 #copy vlc icon
73 cp -a $install/usr/share/icons/hicolor/16x16/apps/vlc.png \
74 $fs/usr/share/pixmaps
76 #Remove unnecessary fonts
77 rm $fs/usr/share/$PACKAGE/skins2/fonts/* 2> /dev/null || true
78 }