12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- # Tanım: Hızlı ve güvenli bir web tarayıcısı
- # URL: http://www.opera.com/
- # 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
- # Grup: ağ
- isim=opera
- surum=53.0.2907.68
- devir=1
- kaynak=(http://get.geo.opera.com/pub/${isim}/desktop/$surum/linux/${isim}-stable_${surum}_amd64.deb
- opera
- default)
- derle() {
- sed -e "s/%{isim}%/${isim}/g" -i "$SRC/opera"
- sed -e "s/%operabin%/${isim}\/${isim}/g" \
- -i "$SRC/opera"
- bsdtar -xf ${isim}-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 "${isim}" ../
- )
- rm -rf "$PKG/usr/lib/"*-linux-gnu
- # suid opera_sandbox
- chmod 4755 "$PKG/usr/lib/${isim}/opera_sandbox"
- # Varsayılan seçenekleri yükle
- install -Dm644 "$SRC/default" "$PKG/etc/${isim}/default"
- # Opera sarmalayıcı yükle
- rm "$PKG/usr/bin/${isim}"
- install -Dm755 "$SRC/opera" "$PKG/usr/bin/${isim}"
- # lisans
- install -Dm644 \
- "$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
- }
|