desktop/smplayer/PKGBUILD

42 lines
1.4 KiB
Bash
Raw Normal View History

2010-05-31 00:30:09 +08:00
pkgname=smplayer
2018-06-14 10:29:11 +08:00
pkgver=18.5.0
2014-04-05 11:13:13 +08:00
pkgrel=1
2010-05-31 00:30:09 +08:00
pkgdesc="A complete front-end for MPlayer"
2012-12-27 01:35:19 +08:00
arch=('x86_64')
2018-02-20 16:59:02 +08:00
url="https://www.smplayer.info/"
2010-05-31 00:30:09 +08:00
license=('GPL')
depends=('qt5-script' 'mplayer' 'hicolor-icon-theme' 'libxkbcommon-x11')
makedepends=('qt5-tools')
2014-04-05 11:13:13 +08:00
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
2017-03-07 15:21:45 +08:00
source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
2018-06-14 10:29:11 +08:00
sha256sums=('36a3aeda0f1fcbffdf05039185dd76160551a2905056ef933fd3b772eb47ad3b')
2010-05-31 00:30:09 +08:00
build() {
cd ${srcdir}/${pkgname}-${pkgver}
make PREFIX=/usr QMAKE=qmake-qt5 LRELEASE=lrelease-qt5 \
2014-04-05 11:13:13 +08:00
DOC_PATH="\\\"/usr/share/doc/smplayer\\\"" \
QMAKE_OPTS=DEFINES+=NO_DEBUG_ON_CONSOLE
2011-12-28 23:53:54 +08:00
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
2014-04-05 11:13:13 +08:00
make DOC_PATH=/usr/share/doc/smplayer \
DESTDIR="$pkgdir" PREFIX="/usr" install
2011-12-28 23:53:54 +08:00
# Icon
2010-05-31 00:30:09 +08:00
install -dm755 ${pkgdir}/usr/share/pixmaps
ln -s /usr/share/icons/hicolor/64x64/apps/smplayer.png \
${pkgdir}/usr/share/pixmaps/
2011-12-28 23:53:54 +08:00
# Menu entries.
2010-05-31 00:30:09 +08:00
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|' \
2012-03-04 06:44:58 +08:00
${pkgdir}/usr/share/applications/smplayer_enqueue.desktop
2010-05-31 00:30:09 +08:00
}