# Template file for 'opera' pkgname=opera version=51.0.2830.55 revision=1 only_for_archs="x86_64" repository="nonfree" nostrip=yes hostmakedepends="freetype-devel" depends="ffmpeg desktop-file-utils hicolor-icon-theme" short_desc="Fast, secure, easy to use browser" maintainer="Diogo Leal " license="Proprietary" homepage="https://www.opera.com/computer" distfiles="https://get.geo.opera.com/pub/opera/desktop/${version}/linux/${pkgname}-stable_${version}_amd64.deb" checksum=d97c56b61a27e1cfb1be02cc75c8b8da72f61bfd4be174f91aef2352aa6944df 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() { vmkdir /usr/lib vcopy usr/lib/x86_64-linux-gnu/opera /usr/lib vmkdir /usr/bin ln -s ../lib/opera/opera ${DESTDIR}/usr/bin/opera vlicense usr/share/doc/opera-stable/copyright rm -rf usr/share/doc vcopy usr/share /usr ln -sf /usr/lib/libfreetype.so.6 ${DESTDIR}/usr/lib/opera/libfreetype.so.6 # suid opera_sandbox chmod 4755 ${DESTDIR}/usr/lib/opera/opera_sandbox }