2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: Hızlı ve güvenli bir web tarayıcısı
|
2017-06-20 00:28:28 +02:00
|
|
|
|
# URL: http://www.opera.com/
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: yasarciv67
|
|
|
|
|
# Gerekler: gtk2 desktop-file-utils shared-mime-info xorg-libxtst gconf xorg-libxscrnsaver alsa-lib nss freefont-ttf libnotify hicolor-icon-theme
|
2017-06-20 00:28:28 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=opera-web-browser
|
|
|
|
|
_isim=opera
|
|
|
|
|
surum=45.0.2552.898
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(http://get.geo.opera.com/pub/$_name/desktop/$surum/linux/$_name-stable_${surum}_amd64.deb
|
2017-06-20 00:28:28 +02:00
|
|
|
|
opera
|
|
|
|
|
default
|
|
|
|
|
)
|
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-06-20 00:28:28 +02:00
|
|
|
|
sed -e "s/%_name%/$_name/g" -i "$SRC/opera"
|
|
|
|
|
sed -e "s/%operabin%/$_name\/$_name/g" \
|
|
|
|
|
-i "$SRC/opera"
|
2017-10-28 14:10:23 +02:00
|
|
|
|
bsdtar -xf $_name-stable_${surum}_amd64.deb
|
2017-06-20 00:28:28 +02:00
|
|
|
|
bsdtar -xf data.tar.xz --exclude=usr/share/{lintian,menu} -C "$PKG/"
|
|
|
|
|
# get rid of the extra subfolder {i386,x86_64}-linux-gnu
|
|
|
|
|
(
|
|
|
|
|
cd "$PKG/usr/lib/"*-linux-gnu/
|
|
|
|
|
mv "$_name" ../
|
|
|
|
|
)
|
|
|
|
|
rm -rf "$PKG/usr/lib/"*-linux-gnu
|
|
|
|
|
|
|
|
|
|
# suid opera_sandbox
|
|
|
|
|
chmod 4755 "$PKG/usr/lib/$_name/opera_sandbox"
|
|
|
|
|
|
|
|
|
|
# install default options
|
|
|
|
|
install -Dm644 "$SRC/default" "$PKG/etc/$_name/default"
|
|
|
|
|
|
|
|
|
|
# install opera wrapper
|
|
|
|
|
rm "$PKG/usr/bin/$_name"
|
|
|
|
|
install -Dm755 "$SRC/opera" "$PKG/usr/bin/$_name"
|
|
|
|
|
|
|
|
|
|
# license
|
|
|
|
|
|
|
|
|
|
install -Dm644 \
|
|
|
|
|
"$PKG/usr/share/doc/${_name}-stable/copyright" \
|
|
|
|
|
"$PKG/usr/share/licenses/$_name/copyright"
|
|
|
|
|
}
|