mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
42 lines
1.4 KiB
Bash
42 lines
1.4 KiB
Bash
pkgname=smplayer
|
|
pkgver=17.3.0
|
|
pkgrel=1
|
|
pkgdesc="A complete front-end for MPlayer"
|
|
arch=('x86_64')
|
|
url="http://smplayer.sourceforge.net/"
|
|
license=('GPL')
|
|
depends=('qt5-script' 'mplayer' 'hicolor-icon-theme' 'libxkbcommon-x11')
|
|
makedepends=('qt5-tools')
|
|
optdepends=('smplayer-themes: icon themes collection'
|
|
'smplayer-skins: skin themes collection'
|
|
'smtube: browse and play youtube videos'
|
|
'mpv: for using mpv instead of mplayer')
|
|
categories=('multimedia')
|
|
install=smplayer.install
|
|
source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
|
|
sha256sums=('b26686329fb9e0fded08cd2c42c7d1a6e778953e8059c5aa00b88d3c8b38677b')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
make PREFIX=/usr QMAKE=qmake-qt5 LRELEASE=lrelease-qt5 \
|
|
DOC_PATH="\\\"/usr/share/doc/smplayer\\\"" \
|
|
QMAKE_OPTS=DEFINES+=NO_DEBUG_ON_CONSOLE
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
make DOC_PATH=/usr/share/doc/smplayer \
|
|
DESTDIR="$pkgdir" PREFIX="/usr" install
|
|
|
|
# Icon
|
|
install -dm755 ${pkgdir}/usr/share/pixmaps
|
|
ln -s /usr/share/icons/hicolor/64x64/apps/smplayer.png \
|
|
${pkgdir}/usr/share/pixmaps/
|
|
|
|
# Menu entries.
|
|
sed -i 's|Exec=smplayer %U|Exec=smplayer %F|' ${pkgdir}/usr/share/applications/smplayer.desktop || return 1
|
|
sed -i 's|Exec=smplayer -add-to-playlist %U|Exec=smplayer -add-to-playlist %F|' \
|
|
${pkgdir}/usr/share/applications/smplayer_enqueue.desktop
|
|
}
|