mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
39 lines
1.3 KiB
Bash
39 lines
1.3 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>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=smplayer
|
|
pkgver=0.6.9
|
|
pkgrel=2
|
|
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')
|
|
source=(http://downloads.sourceforge.net/sourceforge/smplayer/${pkgname}-${pkgver}.tar.bz2)
|
|
md5sums=('dfe874b386509de5df78537489f95004')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
# remove broken translation
|
|
sed -i "s|translations/smplayer_gl.ts|#translations/smplayer_gl.ts|" src/smplayer.pro
|
|
|
|
make PREFIX=/usr || return 1
|
|
make PREFIX=${pkgdir}/usr install || return 1
|
|
|
|
install -dm755 ${pkgdir}/usr/share/pixmaps
|
|
ln -s /usr/share/icons/hicolor/64x64/apps/smplayer.png \
|
|
${pkgdir}/usr/share/pixmaps/
|
|
|
|
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
|
|
}
|
|
|