parent
b9169cf240
commit
93e83ac54d
|
@ -1,40 +1,28 @@
|
|||
# Template file for 'opera'
|
||||
pkgname=opera
|
||||
version=45.0.2552.898
|
||||
version=46.0.2597.32
|
||||
revision=1
|
||||
only_for_archs="i686 x86_64"
|
||||
only_for_archs="x86_64"
|
||||
hostmakedepends="freetype-devel"
|
||||
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/"
|
||||
homepage="https://www.opera.com/computer"
|
||||
nopie=yes
|
||||
|
||||
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then
|
||||
_debarch=amd64
|
||||
checksum=2a06172140d22e8740807762f5320007eb6797ed49e8ec6f366ac8a0817caa66
|
||||
else
|
||||
_debarch=i386
|
||||
checksum=0fd8497f914efc47eb1ef1c7ce052487e3ca0c4c5474f01ad7e721f6ea08fea8
|
||||
fi
|
||||
|
||||
distfiles="http://get.geo.opera.com/pub/opera/desktop/${version}/linux/opera-stable_${version}_${_debarch}.deb"
|
||||
distfiles="https://get.geo.opera.com/pub/${pkgname}/desktop/${version}/linux/${pkgname}-stable_${version}_amd64.deb"
|
||||
checksum=5b1a4724cd6b0719aa2c07a4055a02e35b23c7f8890eb9749364af54a101ad30
|
||||
|
||||
do_extract() {
|
||||
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/opera-stable_${version}_${_debarch}.deb
|
||||
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-stable_${version}_amd64.deb
|
||||
cd ${wrksrc}
|
||||
tar xfJ data.tar.xz
|
||||
tar xf data.tar.xz
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vbin ${FILESDIR}/opera
|
||||
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ]; then
|
||||
vcopy usr/lib/x86_64-linux-gnu usr/lib
|
||||
else
|
||||
vcopy usr/lib/i386-linux-gnu/opera usr/lib
|
||||
fi
|
||||
vcopy usr/lib/x86_64-linux-gnu usr/lib
|
||||
vcopy usr/share /usr/share
|
||||
vlicense usr/share/doc/opera-stable/copyright
|
||||
ln -sf /usr/lib/libfreetype.so.6 ${DESTDIR}/usr/lib/opera/libfreetype.so.6
|
||||
|
|
Loading…
Reference in New Issue