wok view smplayer/receipt @ rev 25701
Up xcursor-comix (0.10.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 29 11:38:51 2024 +0000 (5 months ago) |
parents | 0c04fc34847a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="smplayer"
4 VERSION="22.7.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="qmake Qt4-dev"
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
55 for size in 64 128 192 256 512 scalable
56 do
57 rm -rf $fs/usr/share/icons/hicolor/${size}*
58 done
59 }