milis/talimatname/genel/o/opera-web-browser/talimat

44 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Hızlı ve güvenli bir web tarayıcısı
# URL: http://www.opera.com/
# 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
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
opera
default
)
derle() {
sed -e "s/%_name%/$_name/g" -i "$SRC/opera"
sed -e "s/%operabin%/$_name\/$_name/g" \
-i "$SRC/opera"
bsdtar -xf $_name-stable_${surum}_amd64.deb
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"
}