|
发表于 2005-5-9 18:50:04
|
显示全部楼层
[arch][PKGBUILD]realplayer 10.0.4
软件名:realplayer
版本:10.0.4
软件简介:realplayer播放器
补丁:sunmoon制作的多个补丁。主要修正中文支持。
编写:crazythink
提交日期:2005年05月09日
- # Maintainer: crazythink
- pkgname=realplayer
- pkgver=10.0.4
- pkgrel=1
- url="http://www.helixplayer.org"
- pkgdesc="Real Media Player."
- depends=('gtk2' 'glib2' 'pango' 'alsa-oss' 'libtheora' 'libogg' 'libvorbis')
- makedepends=('python')
- source=(https://helixcommunity.org/download.php/970/realplay-$pkgver-source.tar.bz2\
- installer-naming.patch\
- realplayer-10.0.4-cjk-hack.patch\
- realplayer-10.0.4-oss-use-aoss.patch\
- realplayer-10.0.4-cxx-link-fix.patch\
- realplayer-10.0.4-disable-asm.patch\
- realplayer-10.0.4-sysinfo-gcc4-i586-fix.patch\
- buildrc)
- md5sums=()
- build() {
- SRCDIR=$startdir/src/realplay-$pkgver
- PKGDIR=$startdir/pkg
- cd $SRCDIR
- #adjust strange naming for helixplayer tarball
- patch -p1<../installer-naming.patch
- #fixes cjk issues
- patch -p1<../realplayer-10.0.4-cjk-hack.patch
- #dirty hack,, use alsa oss emulation
- patch -p1<../realplayer-10.0.4-oss-use-aoss.patch
- #fixes missing libstdc++ issues
- patch -p1<../realplayer-10.0.4-cxx-link-fix.patch
- #disable asm code ...
- patch -p1<../realplayer-10.0.4-disable-asm.patch
- #gcc4 fixes
- patch -p1<../realplayer-10.0.4-sysinfo-gcc4-i586-fix.patch
- cp ../buildrc .
- export BUILDRC="$SRCDIR/buildrc"
- export BUILD_ROOT="$SRCDIR/build"
- #unset CFLAGS
- #unset CXXFLAGS
- #unset LDFLAGS
- #now we can begin the build
- $SRCDIR/build/bin/build -m realplay_gtk_release -t release -k -p green -P helix-client-all-defines player_all || return 1
- #install
- mkdir -p $PKGDIR/opt/realplayer
- tar -jxf $SRCDIR/release/realplayer.tar.bz2 -C $PKGDIR/opt/realplayer
- # Remove setup script as it's dangerous, and the directory if it's empty
- rm -fr $PKGDIR/opt/realplayer/Bin
- #mozilla plugins
- mkdir -p $PKGDIR/opt/mozilla-plugins
- ln -sf /opt/realplayer/mozilla/nphelix.so $PKGDIR/opt/mozilla-plugins
- #Language resources
- cd $PKGDIR/opt/realplayer/share/locale
- for LC in *; do
- mkdir -p $PKGDIR/usr/share/locale/${LC}/LC_MESSAGES
- cd $PKGDIR/usr/share/locale/${LC}/LC_MESSAGES
- ln -sf /opt/realplayer/share/locale/${LC}/player.mo realplay.mo
- ln -sf /opt/realplayer/share/locale/${LC}/widget.mo libgtkhx.mo
- done
- #icons
- for res in 16 192 32 48; do
- mkdir -p $PKGDIR/usr/share/icons/hicolor/${res}x${res}/apps
- cp $SRCDIR/player/app/gtk/res/icons/realplay/realplay_${res}x${res}.png $PKGDIR/usr/share/icons/hicolor/${res}x${res}/apps/realplay.png
- done
- #menu
- mkdir -p $PKGDIR/usr/share/applications
- cp $SRCDIR/player/installer/common/realplay.desktop $PKGDIR/usr/share/applications
- mkdir -p $PKGDIR/usr/bin
- cd $PKGDIR/usr/bin
- ln -sf /opt/realplayer/realplay .
- }
复制代码
说明:
1、所有的patch在http://www.magiclinux.org/people/su...lplayer.tar.bz2 下载;
2、realplayer的源文件我原来在上面引用的帖子里面下载的,跟官方下载的不一样,大家看着改PKGBUILD吧。
3、如果标题还是乱码,在.realplayerrc中,[encoding]改为GBK
- [encoding]
- RemoteUrlEncoding=GBK
- MetaDataEncoding=GBK
复制代码 |
|