2010-05-31 00:30:09 +08:00
|
|
|
#
|
2012-02-01 17:43:15 +08:00
|
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
2010-05-31 00:30:09 +08:00
|
|
|
#
|
|
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
|
|
|
|
pkgname=smplayer
|
2011-12-28 23:53:54 +08:00
|
|
|
_pkgname=SMPlayer
|
2012-03-04 06:44:58 +08:00
|
|
|
pkgver=0.7.1
|
2011-12-28 23:53:54 +08:00
|
|
|
pkgrel=1
|
2010-05-31 00:30:09 +08:00
|
|
|
pkgdesc="A complete front-end for MPlayer"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://smplayer.sourceforge.net/"
|
|
|
|
license=('GPL')
|
2012-03-04 06:44:58 +08:00
|
|
|
depends=('qt>=4.8.0' 'mplayer>=30526' 'mpg123')
|
2011-12-28 23:53:54 +08:00
|
|
|
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$_pkgname/$pkgver/${pkgname}-${pkgver}.tar.bz2)
|
2012-03-04 06:44:58 +08:00
|
|
|
md5sums=('e50046399ee918bb7b57e98971425c95')
|
2010-05-31 00:30:09 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
2012-03-04 06:44:58 +08:00
|
|
|
make PREFIX=/usr
|
2011-12-28 23:53:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
2012-03-04 06:44:58 +08:00
|
|
|
make PREFIX=${pkgdir}/usr install
|
2010-05-31 00:30:09 +08:00
|
|
|
|
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
|
|
|
}
|