desktop/smplayer/PKGBUILD
Adrian Chaves Fernandez (Gallaecio) efedc59b97 SMPlayer 1.6.10.
2011-12-28 15:53:54 +00:00

38 lines
1.2 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=smplayer
_pkgname=SMPlayer
pkgver=0.6.10
pkgrel=1
pkgdesc="A complete front-end for MPlayer"
arch=('i686' 'x86_64')
url="http://smplayer.sourceforge.net/"
license=('GPL')
depends=('qt>=4.7.0' 'mplayer>=30526' 'mpg123')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$_pkgname/$pkgver/${pkgname}-${pkgver}.tar.bz2)
md5sums=('9f5ee3319bebc0ed5efe636cf7f0efad')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
make PREFIX=/usr || return 1
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make PREFIX=${pkgdir}/usr install || return 1
# 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 || return 1
}