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

49 lines
1.5 KiB
Plaintext
Raw Normal View History

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/
2018-01-05 08:57:45 +01:00
# Paketçi: yasarciv67 Cihan_Alkan
2017-10-27 20:46:27 +02:00
# 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
2018-01-05 08:57:45 +01:00
surum=50.0.2762.45
2017-10-28 14:10:23 +02:00
devir=1
2018-01-05 08:57:45 +01:00
kaynak=(http://get.geo.opera.com/pub/$_isim/desktop/$surum/linux/$_isim-stable_${surum}_amd64.deb
2017-06-20 00:28:28 +02:00
opera
2018-01-05 08:57:45 +01:00
default)
2017-06-20 00:28:28 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2018-01-05 08:57:45 +01:00
sed -e "s/%_isim%/$_isim/g" -i "$SRC/opera"
sed -e "s/%operabin%/$_isim\/$_isim/g" \
2017-06-20 00:28:28 +02:00
-i "$SRC/opera"
2018-01-05 08:57:45 +01:00
bsdtar -xf $_isim-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/
2018-01-05 08:57:45 +01:00
mv "$_isim" ../
2017-06-20 00:28:28 +02:00
)
rm -rf "$PKG/usr/lib/"*-linux-gnu
# suid opera_sandbox
2018-01-05 08:57:45 +01:00
chmod 4755 "$PKG/usr/lib/$_isim/opera_sandbox"
2017-06-20 00:28:28 +02:00
2018-01-05 08:57:45 +01:00
# Varsayılan seçenekleri yükle
install -Dm644 "$SRC/default" "$PKG/etc/$_isim/default"
2017-06-20 00:28:28 +02:00
2018-01-05 08:57:45 +01:00
# Opera sarmalayıcı yükle
rm "$PKG/usr/bin/$_isim"
install -Dm755 "$SRC/opera" "$PKG/usr/bin/$_isim"
2017-06-20 00:28:28 +02:00
2018-01-05 08:57:45 +01:00
# lisans
2017-06-20 00:28:28 +02:00
install -Dm644 \
2018-01-05 08:57:45 +01:00
"$PKG/usr/share/doc/${_isim}-stable/copyright" \
"$PKG/usr/share/licenses/$_isim/copyright"
# Başlatıcı
sed -i 's/^Exec=/Name[tr]=Opera \
GenericName[tr]=Web Tarayıcı \
Comment[tr]=Hızlı ve güvenli bir web tarayıcısı \
&/' $PKG/usr/share/applications/$_isim.desktop
2017-06-20 00:28:28 +02:00
}