wok annotate vlc/receipt @ rev 22350

xarchiver: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 18 11:21:40 2019 +0100 (2019-11-18)
parents dc0af390172d
children b29de3cc9c86
rev   line source
jozee@2944 1 # SliTaz package receipt.
jozee@2944 2
jozee@2944 3 PACKAGE="vlc"
Hans-G?nter@22111 4 VERSION="3.0.8"
jozee@2944 5 CATEGORY="multimedia"
Hans-G?nter@22111 6 TAGS="audio video multimedia movie player"
Hans-G?nter@22111 7 SHORT_DESC="MPEG, VCD/DVD, and DivX player."
jozee@2944 8 MAINTAINER="jozee@slitaz.org"
pascal@15000 9 LICENSE="GPL2"
Hans-G?nter@22111 10 WEB_SITE="http://www.videolan.org/vlc/"
Hans-G?nter@22111 11
domcox@12849 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
jozee@2944 13 WGET_URL="http://download.videolan.org/pub/videolan/$PACKAGE/$VERSION/$TARBALL"
Hans-G?nter@22111 14
pascal@21807 15 COOKOPTS="!fixdesktops"
Hans-G?nter@22111 16 DEPENDS="gcc83-lib-base libQtCore libQtGui libvlc"
Hans-G?nter@22111 17 BUILD_DEPENDS="alsa-lib-dev dbus-dev expat-dev ffmpeg-dev flac-dev fribidi-dev
Hans-G?nter@22111 18 gcc83 gcc83-lib-base gettext gmp-dev gnutls-dev libgnutls libmad-dev
Hans-G?nter@22111 19 libegl-mesa libsamplerate-dev libupnp-dev libxml2-dev lua5.1-dev
Hans-G?nter@22111 20 ncurses-dev opus-dev Qt4-dev taglib-dev tar util-linux-uuid-dev
Hans-G?nter@22111 21 x264-dev x265-dev xcb-util-dev yasm zvbi-dev"
jozee@2944 22
jozee@2944 23 compile_rules()
jozee@2944 24 {
domcox@12849 25 [ -s /var/lib/dbus/machine-id ] || dbus-uuidgen > /var/lib/dbus/machine-id
pascal@13863 26 [ -e /usr/bin/luac ] || ln -s luac5.1 /usr/bin/luac
paul@19119 27 # export ncurses paths
paul@19119 28 export NCURSES_CFLAGS="-I/usr/include"
paul@19119 29 export NCURSES_LIBS="-L/lib -lncurses -ltinfo"
pascal@21805 30 export CC=gcc-83 CXX=g++-83 BUILDCC=gcc-83
Hans-G?nter@22111 31
Hans-G?nter@22111 32 ./configure \
Hans-G?nter@22111 33 --prefix=/usr \
Hans-G?nter@22111 34 --disable-pulse \
Hans-G?nter@22111 35 --disable-a52 \
Hans-G?nter@22111 36 --disable-sout \
Hans-G?nter@22111 37 --disable-libgcrypt \
Hans-G?nter@22111 38 --enable-ncurses \
slaxemulator@10101 39 $CONFIGURE_ARGS &&
jozee@2944 40 make &&
slaxemulator@9842 41 make install
pascal@13862 42 [ -L /usr/bin/luac ] && rm -f /usr/bin/luac
jozee@2944 43 }
jozee@2944 44
jozee@2944 45 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2944 46 genpkg_rules()
jozee@2944 47 {
pascal@4617 48 mkdir -p $fs/usr/share/pixmaps
Hans-G?nter@22111 49
Hans-G?nter@22111 50 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22111 51 cp -a $install/usr/share/$PACKAGE $fs/usr/share
Hans-G?nter@22111 52
domcox@12849 53 #Remove extra icons
jozee@2944 54 rm $fs/usr/share/$PACKAGE/*.ico
Hans-G?nter@22111 55
jozee@2944 56 #copy vlc icon
pascal@13862 57 cp -a $install/usr/share/icons/hicolor/16x16/apps/vlc.png $fs/usr/share/pixmaps
Hans-G?nter@22111 58
jozee@2944 59 #Remove unnecessary fonts
pascal@19582 60 rm $fs/usr/share/$PACKAGE/skins2/fonts/* 2> /dev/null || true
jozee@2944 61 }