wok-next view smplayer/receipt @ rev 20194
Up irrlicht (1.8.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 11:27:16 2017 +0100 (2017-11-03) |
parents | 4db41c0dada2 |
children | 67cc287fb6da |
line source
1 # SliTaz package receipt.
3 PACKAGE="smplayer"
4 VERSION="17.10.2"
5 CATEGORY="multimedia"
6 SHORT_DESC="QT-based front-end for MPlayer or mpv"
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://smplayer.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 TAGS="player audio video movie"
14 DEPENDS="mplayer-cli qt5-base qt5-script libxkbcommon-x11" # gcc
15 BUILD_DEPENDS="qt5-dev xorg-dev zlib-dev"
16 SUGGESTED="smplayer-themes smtube mpv"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # Some default setting incompatible with minimal mplayer
22 sed '/use_ass_subtitles/s/true/false/' -i src/preferences.cpp
23 make PREFIX=/usr &&
24 make PREFIX=/usr DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/share/applications
31 cp -a $install/usr/bin $fs/usr
32 cp -fa $install/usr/share/applications/* $fs/usr/share/applications
33 cp -a $install/usr/share/$PACKAGE $fs/usr/share
34 cp -a $install/usr/share/icons $fs/usr/share
35 rm $fs/usr/share/$PACKAGE/translations/*
37 for i in de en_US es fr it pt_BR ru_RU
38 do cp -a $install/usr/share/$PACKAGE/translations/smplayer_$i.qm \
39 $fs/usr/share/$PACKAGE/translations/
40 done
41 for size in 64 128 192 256 512 scalable; do
42 rm -rf $fs/usr/share/icons/hicolor/${size}*
43 done
44 }