desktop/opera/PKGBUILD

43 lines
1.6 KiB
Bash
Raw Normal View History

2010-05-31 02:50:48 +08:00
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
2010-05-31 00:30:09 +08:00
pkgname=opera
2010-06-22 22:13:04 +08:00
pkgver=10.11
_buildver=4791
2010-05-31 00:30:09 +08:00
pkgrel=1
pkgdesc="The Opera web browser"
url="http://www.opera.com"
depends=('qt')
license=('custom:opera')
arch=('i686' 'x86_64')
source=(http://ftp.opera.com/pub/opera/linux/${pkgver/./}/final/en/i386/opera-${pkgver}.gcc4-qt4.i386.tar.bz2 opera.desktop)
2010-06-22 22:13:04 +08:00
md5sums=('825f39f6653fca37dc04b4d0b92797ec'
2010-05-31 00:30:09 +08:00
'43331f6889a24c55274968bb47ae824d')
[ "$CARCH" = "x86_64" ] && source=(http://ftp.opera.com/pub/opera/linux/${pkgver/./}/final/en/x86_64/opera-${pkgver}.gcc4-qt4.x86_64.tar.bz2 opera.desktop)
2010-06-22 22:13:04 +08:00
[ "$CARCH" = "x86_64" ] && md5sums=('1b9ae201cb1df43d3ca291a51d7c7e6c'
2010-05-31 00:30:09 +08:00
'43331f6889a24c55274968bb47ae824d')
build() {
if [ "$CARCH" = "x86_64" ]; then
cd ${srcdir}/opera-${pkgver}-${_buildver}.gcc4-qt4.x86_64
else cd ${srcdir}/opera-${pkgver}-${_buildver}.gcc4-qt4.i386
fi
./install.sh DESTDIR=${pkgdir}
install -D -m 644 ${srcdir}/opera.desktop ${pkgdir}/usr/share/applications/opera.desktop
install -D -m 644 LICENSE ${pkgdir}/usr/share/licenses/opera/license.txt
if [ "$CARCH" = "x86_64" ]; then
install -D -m 644 ${srcdir}/opera-${pkgver}-${_buildver}.gcc4-qt4.x86_64/usr/share/pixmaps/opera.xpm ${pkgdir}/usr/share/pixmaps/opera.xpm
else
install -D -m 644 ${srcdir}/opera-${pkgver}-${_buildver}.gcc4-qt4.i386/usr/share/pixmaps/opera.xpm ${pkgdir}/usr/share/pixmaps/opera.xpm
fi
}