页面

2009年3月22日

[PKGBUILD] opera 中国版 9.64 qt3/qt4

opera中国版9.64发布后的第十二天,我终于将AUR上的PKGBUILD更新了~ :) 。虽然官方也提供了PKGBUILD,不过为了方便使用yaourt的同学,还是将AUR上的更新一下吧。

相对于上一版本,这次的中国版终于有了基于qt4的,不够有点遗憾,这个qt4版的只有32位,而且还是自带qt的静态编译版~~ (用的是qt4.2.2)

opera-china 9.64 qt3(32位和64位)
AUR链接,或者将下面的内容存为PKGBUILD,或者yaourt -S opera-china-qt3安装。
# Contributor: clayton  
pkgname=opera-china-qt3
pkgver=9.64
pkgrel=1
pkgdesc="The Opera web browser"
url="http://www.operachina.com/linux/"
arch=('i686' 'x86_64')
depends=('qt3')
provides=('opera')
license=('custom:opera')
conflicts=('opera' 'opera-qt3' 'opera-qt4' 'opera-static' 'opera-china-qt4')

source=('http://bbs.operachina.com/download/file.php?id=12367')
[ "$CARCH" = "x86_64" ] && source=('http://bbs.operachina.com/download/file.php?id=12368')

md5sums=('f207a97780807a74e4d809766db2eba1')
[ "$CARCH" = "x86_64" ] && md5sums=('2dd1fb32d428ab1531634b3b32332afd')

build() {
cd $startdir/src/

# fix the pkgname
if [ "$CARCH" = "i686" ]; then
_pkgname="opera_9.64.2480.gcc4.qt3_i386_ibis.deb"
mv file.php?id=12367 $_pkgname
else
_pkgname="opera_9.64.2480.gcc4.qt3_amd64_ibis.deb"
mv file.php?id=12368 $_pkgname
fi

ar vx $_pkgname
tar xfz data.tar.gz

cp -a $startdir/src/usr $startdir/pkg
cp -a $startdir/src/etc $startdir/pkg

}


opera-china 9.64 qt4 static(32位)
AUR链接,或者将下面的内容存为PKGBUILD,或者yaourt -S opera-china-qt4安装。
# Contributor: clayton  
pkgname=opera-china-qt4
pkgver=9.64
pkgrel=1
pkgdesc="The Opera web browser"
url="http://www.operachina.com/linux/"
arch=('i686')
#depends=('qt') ### This is a static qt version.
provides=('opera')
license=('custom:opera')
conflicts=('opera' 'opera-qt3' 'opera-qt4' 'opera-static' 'opera-china-qt3')
source=('http://bbs.operachina.com/download/file.php?id=12366')
md5sums=('21f7993f3e8a7c2146380d97732ead05')

build() {
cd $startdir/src/

# fix the pkgname
_pkgname="opera_9.64.2480.gcc4.qt4_i386_ibis.deb"
mv file.php?id=12366 $_pkgname

ar vx $_pkgname
tar xfz data.tar.gz

cp -a $startdir/src/usr $startdir/pkg
cp -a $startdir/src/etc $startdir/pkg

}

没有评论:

发表评论