desktop/smplayer/PKGBUILD

42 lines
1.3 KiB
Bash
Raw Normal View History

2014-04-05 11:13:13 +08:00
# Maintainer: UtG <utg.chakra.linux[at]gmail[dot]com>
2010-05-31 00:30:09 +08:00
pkgname=smplayer
2011-12-28 23:53:54 +08:00
_pkgname=SMPlayer
2014-09-15 16:04:25 +08:00
pkgver=14.9.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')
2010-05-31 00:30:09 +08:00
url="http://smplayer.sourceforge.net/"
license=('GPL')
2014-09-15 16:04:25 +08:00
depends=('qt>=4.8.4' 'mplayer' 'mpg123' 'hicolor-icon-theme' 'harfbuzz' 'graphite')
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')
categories=('multimedia')
2014-09-15 16:04:25 +08:00
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
md5sums=('34bd6762f684064bafdaea0afa4e2d40')
2010-05-31 00:30:09 +08:00
build() {
cd ${srcdir}/${pkgname}-${pkgver}
2012-03-04 06:44:58 +08:00
make PREFIX=/usr
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
}