wok-next annotate smplayer/receipt @ rev 21143
Small updates.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 25 15:37:19 2019 +0200 (2019-01-25) |
parents | d5aab818505e |
children |
rev | line source |
---|---|
al@21020 | 1 # SliTaz package receipt v2. |
jozee@2910 | 2 |
jozee@2910 | 3 PACKAGE="smplayer" |
psychomaniak@20419 | 4 VERSION="18.1.0" |
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" |
al@21032 | 9 WEB_SITE="https://www.smplayer.info/" |
al@21020 | 10 |
jozee@2910 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
slaxemulator@7139 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
jozee@2910 | 13 |
psychomaniak@19996 | 14 BUILD_DEPENDS="qt5-dev xorg-dev zlib-dev" |
psychomaniak@19558 | 15 |
al@21020 | 16 compile_rules() { |
psychomaniak@19552 | 17 # Some default setting incompatible with minimal mplayer |
psychomaniak@19552 | 18 sed '/use_ass_subtitles/s/true/false/' -i src/preferences.cpp |
pascal@5007 | 19 make PREFIX=/usr && |
al@21020 | 20 make PREFIX=/usr DESTDIR=$install install |
jozee@2910 | 21 } |
jozee@2910 | 22 |
al@21020 | 23 genpkg_rules() { |
psychomaniak@19558 | 24 mkdir -p $fs/usr/share/applications |
pascal@15593 | 25 cp -a $install/usr/bin $fs/usr |
psychomaniak@19559 | 26 cp -fa $install/usr/share/applications/* $fs/usr/share/applications |
psychomaniak@19552 | 27 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
psychomaniak@19552 | 28 cp -a $install/usr/share/icons $fs/usr/share |
jozee@2910 | 29 rm $fs/usr/share/$PACKAGE/translations/* |
psychomaniak@19552 | 30 |
psychomaniak@19552 | 31 for i in de en_US es fr it pt_BR ru_RU |
psychomaniak@19552 | 32 do cp -a $install/usr/share/$PACKAGE/translations/smplayer_$i.qm \ |
psychomaniak@19552 | 33 $fs/usr/share/$PACKAGE/translations/ |
psychomaniak@19552 | 34 done |
psychomaniak@19552 | 35 for size in 64 128 192 256 512 scalable; do |
psychomaniak@19552 | 36 rm -rf $fs/usr/share/icons/hicolor/${size}* |
psychomaniak@19552 | 37 done |
al@21020 | 38 DEPENDS="mplayer-cli qt5-base qt5-script libxkbcommon-x11 libatomic" |
al@21020 | 39 SUGGESTED="smplayer-themes smtube mpv" |
al@21020 | 40 TAGS="player audio video movie" |
jozee@2910 | 41 } |