41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Template file for 'opera'
|
|
pkgname=opera
|
|
version=45.0.2552.888
|
|
revision=1
|
|
only_for_archs="i686 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/"
|
|
nopie=yes
|
|
|
|
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then
|
|
_debarch=amd64
|
|
checksum=d66c46fac32ebef510f2dc8de753be50f209152ea6bb206a13079c39ac27c754
|
|
else
|
|
_debarch=i386
|
|
checksum=336fd67bc95908b0f73b0e80f80b4f910eb1ff95f1b00baf6cef8bff7988f8dd
|
|
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
|
|
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/share /usr/share
|
|
vlicense usr/share/doc/opera-stable/copyright
|
|
ln -sf /usr/lib/libfreetype.so.6 ${DESTDIR}/usr/lib/opera/libfreetype.so.6
|
|
}
|