|
发表于 2005-7-12 14:08:46
|
显示全部楼层
[code:1]
# $Id: PKGBUILD,v 1.26 2005/04/21 08:16:31 jgc Exp $
# 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 .
}
[/code:1]
贴一下arch里的realplayer的PKGBUILD,看看这里的编译步骤,应该能明白
[code:1]$SRCDIR/build/bin/build -m realplay_gtk_release -t release -k -p green -P helix-client-all-defines player_all || return 1
[/code:1] |
|