desktop/opera/PKGBUILD

38 lines
1.3 KiB
Bash
Raw Normal View History

2010-05-31 02:50:48 +08:00
#
2012-05-10 23:11:58 +08:00
# Apps Packages for Chakra, part of chakra-project.org
2010-05-31 02:50:48 +08:00
#
2010-05-31 00:30:09 +08:00
pkgname=opera
pkgver=12.02
_buildver=1578
2011-01-27 21:03:04 +08:00
pkgrel=1
2010-07-02 17:42:49 +08:00
pkgdesc="A fast and secure web browser and Internet suite."
url="http://www.opera.com/browser/"
2011-05-17 23:38:49 +08:00
depends=('gcc-libs' 'libxt' 'freetype2' 'libxext')
2010-07-02 17:42:49 +08:00
optdepends=('gtk2: GTK integration' \
2012-03-06 04:05:16 +08:00
'kde-runtime: KDE4 integration' \
2011-05-17 23:38:49 +08:00
'gstreamer0.10-base-plugins: HTML5 open codecs support'
'gstreamer0.10-good: HTML5 open codecs support'
'gstreamer0.10-ffmpeg: HTML5 not so open codecs support'
'gstreamer0.10-bad-plugins: HTML5 not so open codecs support')
2010-07-02 17:42:49 +08:00
install=${pkgname}.install
options=(!strip)
2010-05-31 00:30:09 +08:00
license=('custom:opera')
categories=('network')
2010-05-31 00:30:09 +08:00
arch=('i686' 'x86_64')
2012-06-14 23:58:24 +08:00
if [ "$CARCH" = "i686" ]; then
2012-08-03 02:18:39 +08:00
__arch=i386
source=(http://ftp.opera.com/pub/opera/linux/${pkgver/./}/opera-${pkgver}-${_buildver}.${__arch}.linux.tar.xz)
md5sums=('892fa890e9945809dc5f6bc19b45b0d4')
2012-06-14 23:58:24 +08:00
elif [ "$CARCH" = "x86_64" ]; then
2012-08-03 02:18:39 +08:00
__arch=$CARCH
source=(http://ftp.opera.com/pub/opera/linux/${pkgver/./}/opera-${pkgver}-${_buildver}.${__arch}.linux.tar.xz)
md5sums=('3e83561b0ecaae946dd29e0e47b476ef')
2012-06-14 23:58:24 +08:00
fi
package() {
2012-08-03 02:18:39 +08:00
opera-${pkgver}-${_buildver}.${__arch}.linux/install --prefix /usr --repackage "${pkgdir}/usr"
2012-06-14 23:58:24 +08:00
install -D -m 644 "${pkgdir}/usr/share/${pkgname}/defaults/license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
2012-08-03 01:04:54 +08:00
}