2015-12-13 11:19:43 +00:00
|
|
|
# Template file for 'opera'
|
|
|
|
pkgname=opera
|
2016-04-18 15:25:17 +00:00
|
|
|
version=36.0.2130.65
|
2016-06-10 08:38:08 +00:00
|
|
|
revision=2
|
2016-04-18 15:25:17 +00:00
|
|
|
only_for_archs="i686 x86_64"
|
2015-12-13 11:19:43 +00:00
|
|
|
depends="ffmpeg desktop-file-utils"
|
|
|
|
short_desc="Fast, secure, easy to use browser"
|
|
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
|
|
license="Proprietary"
|
|
|
|
repository="nonfree"
|
|
|
|
homepage="http://www.opera.com/browser/"
|
2016-06-10 08:38:08 +00:00
|
|
|
nopie=yes
|
2016-04-18 15:25:17 +00:00
|
|
|
|
|
|
|
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then
|
|
|
|
_debarch=amd64
|
|
|
|
_platform=x86_64
|
|
|
|
checksum=f6fd496f3cafcb5d12540b9b3ee7ec5fc2d8f3ccfd525d3bb537cc3020efaa31
|
|
|
|
else
|
|
|
|
_debarch=i386
|
|
|
|
_platform=i386
|
|
|
|
checksum=81077245e55d893d47a5aa911c29d8f29d7794e0314bc9e1f8ea383bcd8aab8a
|
|
|
|
fi
|
|
|
|
|
|
|
|
distfiles="http://get.geo.opera.com/pub/opera/desktop/${version}/linux/opera-stable_${version}_${_debarch}.deb"
|
2015-12-13 11:19:43 +00:00
|
|
|
|
|
|
|
do_extract() {
|
2016-04-18 15:25:17 +00:00
|
|
|
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/opera-stable_${version}_${_debarch}.deb
|
2015-12-13 11:19:43 +00:00
|
|
|
cd ${wrksrc}
|
|
|
|
tar xfJ data.tar.xz
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2015-12-13 19:34:53 +00:00
|
|
|
vbin ${FILESDIR}/opera
|
2016-04-18 15:25:17 +00:00
|
|
|
vcopy usr/lib/${_platform}-linux-gnu usr/lib
|
2015-12-13 11:19:43 +00:00
|
|
|
vcopy usr/share /usr/share
|
|
|
|
vlicense usr/share/doc/opera-stable/copyright
|
|
|
|
}
|