wok-next view smplayer/receipt @ rev 20459
Combine receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 13:45:43 2018 +0200 (2018-03-02) |
parents | 67cc287fb6da |
children | d5aab818505e |
line source
1 # SliTaz package receipt.
3 PACKAGE="smplayer"
4 VERSION="18.1.0"
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 libatomic"
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 }