31 lines
1003 B
Bash
31 lines
1003 B
Bash
# Template file for 'opera'
|
|
pkgname=opera
|
|
version=48.0.2685.52
|
|
revision=1
|
|
only_for_archs="x86_64"
|
|
hostmakedepends="freetype-devel"
|
|
depends="ffmpeg desktop-file-utils hicolor-icon-theme"
|
|
short_desc="Fast, secure, easy to use browser"
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
license="Proprietary"
|
|
repository="nonfree"
|
|
homepage="https://www.opera.com/computer"
|
|
nostrip=yes
|
|
# https is horribly slow!
|
|
distfiles="http://get.geo.opera.com/pub/opera/desktop/${version}/linux/${pkgname}-stable_${version}_amd64.deb"
|
|
checksum=1709b44fe1daca3df1063e0566716768c1476fc455fd6d75078d68252096f608
|
|
|
|
do_extract() {
|
|
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-stable_${version}_amd64.deb
|
|
tar xf data.tar.xz --exclude=./usr/share/{lintian,menu}
|
|
}
|
|
|
|
do_install() {
|
|
vbin ${FILESDIR}/opera
|
|
vlicense usr/share/doc/opera-stable/copyright
|
|
rm -rf usr/share/doc
|
|
vcopy usr/lib/x86_64-linux-gnu usr/lib
|
|
vcopy usr/share /usr/share
|
|
ln -sf /usr/lib/libfreetype.so.6 ${DESTDIR}/usr/lib/opera/libfreetype.so.6
|
|
}
|