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