mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
#
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
pkgname=smplayer
|
|
_pkgname=SMPlayer
|
|
pkgver=0.8.1
|
|
pkgrel=1
|
|
pkgdesc="A complete front-end for MPlayer"
|
|
arch=('i686' 'x86_64')
|
|
url="http://smplayer.sourceforge.net/"
|
|
license=('GPL')
|
|
depends=('qt>=4.8.0' 'mplayer>=30526' 'mpg123')
|
|
categories=('multimedia')
|
|
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$_pkgname/$pkgver/${pkgname}-${pkgver}.tar.bz2)
|
|
md5sums=('39556a6113afcd9ceee071a8f85477dc')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
make PREFIX=/usr
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
make PREFIX=${pkgdir}/usr install
|
|
|
|
# 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
|
|
}
|