void-packages/srcpkgs/opera/template

38 lines
1,014 B
Bash
Raw Normal View History

2015-12-13 11:19:43 +00:00
# Template file for 'opera'
pkgname=opera
2016-09-23 09:41:39 +00:00
version=40.0.2308.62
revision=1
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/"
nopie=yes
2016-04-18 15:25:17 +00:00
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then
_debarch=amd64
_platform=x86_64
2016-09-23 09:41:39 +00:00
checksum=61c62a0de6759119d529ac0543af1bad1b30815ea796fa944ce5c1d5649ac2ed
2016-04-18 15:25:17 +00:00
else
_debarch=i386
_platform=i386
2016-09-23 09:41:39 +00:00
checksum=6e0e5209caab2ad48ec4bcda2ac24addb7c91dbff1013c4a7dd9a01dfa0f8058
2016-04-18 15:25:17 +00:00
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() {
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
}