Merge pull request #366 from oltulu/patch-150

Update talimat
This commit is contained in:
Milli İşletim Sistemi (Milis Linux) 2018-01-13 15:40:14 +02:00 committed by GitHub
commit 649c8b9018
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,43 +1,48 @@
# Tanım: Hızlı ve güvenli bir web tarayıcısı # Tanım: Hızlı ve güvenli bir web tarayıcısı
# URL: http://www.opera.com/ # URL: http://www.opera.com/
# Paketçi: yasarciv67 # Paketçi: yasarciv67 Cihan_Alkan
# Gerekler: gtk2 desktop-file-utils shared-mime-info xorg-libxtst gconf xorg-libxscrnsaver alsa-lib nss freefont-ttf libnotify hicolor-icon-theme # 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-web-browser
_isim=opera _isim=opera
surum=45.0.2552.898 surum=50.0.2762.45
devir=1 devir=1
kaynak=(http://get.geo.opera.com/pub/$_name/desktop/$surum/linux/$_name-stable_${surum}_amd64.deb kaynak=(http://get.geo.opera.com/pub/$_isim/desktop/$surum/linux/$_isim-stable_${surum}_amd64.deb
opera opera
default default)
)
derle() { derle() {
sed -e "s/%_name%/$_name/g" -i "$SRC/opera" sed -e "s/%_isim%/$_isim/g" -i "$SRC/opera"
sed -e "s/%operabin%/$_name\/$_name/g" \ sed -e "s/%operabin%/$_isim\/$_isim/g" \
-i "$SRC/opera" -i "$SRC/opera"
bsdtar -xf $_name-stable_${surum}_amd64.deb bsdtar -xf $_isim-stable_${surum}_amd64.deb
bsdtar -xf data.tar.xz --exclude=usr/share/{lintian,menu} -C "$PKG/" bsdtar -xf data.tar.xz --exclude=usr/share/{lintian,menu} -C "$PKG/"
# get rid of the extra subfolder {i386,x86_64}-linux-gnu # get rid of the extra subfolder {i386,x86_64}-linux-gnu
( (
cd "$PKG/usr/lib/"*-linux-gnu/ cd "$PKG/usr/lib/"*-linux-gnu/
mv "$_name" ../ mv "$_isim" ../
) )
rm -rf "$PKG/usr/lib/"*-linux-gnu rm -rf "$PKG/usr/lib/"*-linux-gnu
# suid opera_sandbox # suid opera_sandbox
chmod 4755 "$PKG/usr/lib/$_name/opera_sandbox" chmod 4755 "$PKG/usr/lib/$_isim/opera_sandbox"
# install default options # Varsayılan seçenekleri yükle
install -Dm644 "$SRC/default" "$PKG/etc/$_name/default" install -Dm644 "$SRC/default" "$PKG/etc/$_isim/default"
# install opera wrapper # Opera sarmalayıcı yükle
rm "$PKG/usr/bin/$_name" rm "$PKG/usr/bin/$_isim"
install -Dm755 "$SRC/opera" "$PKG/usr/bin/$_name" install -Dm755 "$SRC/opera" "$PKG/usr/bin/$_isim"
# license # lisans
install -Dm644 \ install -Dm644 \
"$PKG/usr/share/doc/${_name}-stable/copyright" \ "$PKG/usr/share/doc/${_isim}-stable/copyright" \
"$PKG/usr/share/licenses/$_name/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
} }