We are not allowed to redistribute the software and therefor have to set it as restricted. http://www.operasoftware.com/eula/browser > User shall not and shall not allow any third party to: > (d) sublicense, lease, rent, loan, or distribute the Software or Services to > any third party;
37 lines
1,019 B
Bash
37 lines
1,019 B
Bash
# Template file for 'opera'
|
|
pkgname=opera
|
|
version=36.0.2130.65
|
|
revision=1
|
|
only_for_archs="i686 x86_64"
|
|
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/"
|
|
restricted=yes
|
|
|
|
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"
|
|
|
|
do_extract() {
|
|
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/opera-stable_${version}_${_debarch}.deb
|
|
cd ${wrksrc}
|
|
tar xfJ data.tar.xz
|
|
}
|
|
|
|
do_install() {
|
|
vbin ${FILESDIR}/opera
|
|
vcopy usr/lib/${_platform}-linux-gnu usr/lib
|
|
vcopy usr/share /usr/share
|
|
vlicense usr/share/doc/opera-stable/copyright
|
|
}
|