37 lines
1,014 B
Bash
37 lines
1,014 B
Bash
# Template file for 'opera'
|
|
pkgname=opera
|
|
version=40.0.2308.62
|
|
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/"
|
|
nopie=yes
|
|
|
|
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then
|
|
_debarch=amd64
|
|
_platform=x86_64
|
|
checksum=61c62a0de6759119d529ac0543af1bad1b30815ea796fa944ce5c1d5649ac2ed
|
|
else
|
|
_debarch=i386
|
|
_platform=i386
|
|
checksum=6e0e5209caab2ad48ec4bcda2ac24addb7c91dbff1013c4a7dd9a01dfa0f8058
|
|
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
|
|
}
|