wok annotate smplayer/receipt @ rev 24894

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 08 10:34:41 2022 +0000 (2022-04-08)
parents 7f23dac166fa
children 52493da6e18c
rev   line source
jozee@2910 1 # SliTaz package receipt.
jozee@2910 2
jozee@2910 3 PACKAGE="smplayer"
Hans-G?nter@23954 4 VERSION="20.6.0"
jozee@2910 5 CATEGORY="multimedia"
Hans-G?nter@23651 6 TAGS="player audio video movie"
Hans-G?nter@23651 7 SHORT_DESC="QT-based front-end for MPlayer or mpv."
psychomaniak@19552 8 MAINTAINER="psychomaniak@xakep.ru"
pascal@15593 9 LICENSE="GPL2"
Hans-G?nter@23651 10 WEB_SITE="https://www.smplayer.info/"
Hans-G?nter@23651 11
jozee@2910 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
slaxemulator@7139 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
jozee@2910 14
Hans-G?nter@23954 15 SUGGESTED="mpv smplayer-themes"
Hans-G?nter@23651 16 DEPENDS="libQtCore libQtDBus libQtGui libQtScript libQtXml mplayer-cli"
psychomaniak@19552 17 BUILD_DEPENDS="Qt4-dev qmake"
psychomaniak@19558 18
psychomaniak@19558 19 GENERIC_MENUS="no"
psychomaniak@19558 20
pascal@24313 21 # What is the latest version available today?
pascal@24313 22 current_version()
pascal@24313 23 {
pascal@24313 24 wget -O - $WEB_SITE/en/downloads 2>/dev/null | \
pascal@24313 25 sed '/tar..z/!d;s|.*smplayer-\([0-9]\)|\1|;s|.tar.*||'
pascal@24313 26 }
pascal@24313 27
jozee@2910 28 # Rules to configure and make the package.
jozee@2910 29 compile_rules()
jozee@2910 30 {
psychomaniak@19552 31 # Some default setting incompatible with minimal mplayer
Hans-G?nter@23651 32 sed -i '/use_ass_subtitles/s/true/false/' \
Hans-G?nter@23651 33 src/preferences.cpp
pascal@5007 34 make PREFIX=/usr &&
pascal@15593 35 make PREFIX=/usr DESTDIR=$DESTDIR install
jozee@2910 36 }
jozee@2910 37
jozee@2910 38 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2910 39 genpkg_rules()
jozee@2910 40 {
psychomaniak@19558 41 mkdir -p $fs/usr/share/applications
Hans-G?nter@23651 42
Hans-G?nter@23651 43 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23651 44 cp -fa $install/usr/share/applications/* $fs/usr/share/applications
Hans-G?nter@23651 45 cp -a $install/usr/share/$PACKAGE $fs/usr/share
Hans-G?nter@23651 46 cp -a $install/usr/share/icons $fs/usr/share
Hans-G?nter@23651 47 rm $fs/usr/share/$PACKAGE/translations/*
psychomaniak@19552 48
psychomaniak@19552 49 for i in de en_US es fr it pt_BR ru_RU
Hans-G?nter@23651 50 do
Hans-G?nter@23651 51 cp -a $install/usr/share/$PACKAGE/translations/smplayer_$i.qm \
Hans-G?nter@23651 52 $fs/usr/share/$PACKAGE/translations/
Hans-G?nter@23651 53 done
Hans-G?nter@23651 54 for size in 64 128 192 256 512 scalable
Hans-G?nter@23651 55 do
psychomaniak@19552 56 rm -rf $fs/usr/share/icons/hicolor/${size}*
Hans-G?nter@23651 57 done
jozee@2910 58 }