wok-current view smplayer/receipt @ rev 24661

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