|
发表于 2007-10-13 11:40:34
|
显示全部楼层
10.0.9的pkgbuild
[PHP]# $Id: PKGBUILD,v 1.26 2005/04/21 08:16:31 jgc Exp $
# Maintainer: crazythink
pkgname=realplayer
pkgver=10.0.9
pkgrel=1
url="http://www.helixplayer.org"
pkgdesc="Real Media Player."
depends=('gtk2' 'glib2' 'pango' 'alsa-oss' 'libtheora' 'libogg' 'libvorbis')
makedepends=('python')
arch=('i686')
#source=(realplay-$pkgver-source.tar.bz2)
source=(https://helixcommunity.org/frs/download.php/2480/realplay-10.0.9-source.tar.bz2\
installer-naming.patch\
realplayer-10.0.4-sem_t.patch\
realplayer-10.0.4-cjk-hack.patch\
realplayer-10.0.4-oss-use-aoss.patch\
realplayer-10.0.4-disable-asm.patch\
realplayer-10.0.4-sysinfo-gcc4-i586-fix.patch\
realplayer-10.0.5-gcc4-fix.patch\
buildrc)
md5sums=()
build() {
SRCDIR=$startdir/src/realplay-$pkgver
PKGDIR=$startdir/pkg
cd $SRCDIR
#fix 10.0.9 build error
cp -ru distribution/linux-2.2-libc6-gcc32-i586/* .
#adjust strange naming for helixplayer tarball
patch -p1<../installer-naming.patch
#fixes sem_t based issues
patch -p0<../realplayer-10.0.4-sem_t.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
patch -p0<../realplayer-10.0.5-gcc4-fix.patch
#fixes icon name in .desktop file
sed -i -e 's:realplay.png:realplay:' ./player/installer/common/realplay.desktop
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.py -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 .
}
[/PHP]
注:编译需要/usr/lib/libvorbis.a文件。默认arch不提供了。一并附上。
先把libvorbis.a cp 到/usr/lib/去。
然后,解开realplay-10.0.9.tar.gz, makepkg 即可。 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|