2017-07-02 03:25:42 +02:00
|
|
|
|
# Description: Mozilla.org'dan Bağımsız Web Tarayıcısı
|
|
|
|
|
# URL: http://www.mozilla.com/firefox/
|
|
|
|
|
# Packager: Cihan Alkan
|
|
|
|
|
# Depends on: libbluray pulseaudio gconf yasm sqlite libvpx libevent nss alsa-lib gtk2 gtk3 xorg-app zip unzip gstreamer1 gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-plugins-libav
|
|
|
|
|
|
2017-07-02 13:47:18 +02:00
|
|
|
|
name=firefox-bin
|
2017-07-02 13:44:06 +02:00
|
|
|
|
_name=firefox
|
2017-07-02 03:25:42 +02:00
|
|
|
|
version=54.0
|
|
|
|
|
release=1
|
2017-07-02 13:44:06 +02:00
|
|
|
|
source=(https://ftp.mozilla.org/pub/firefox/releases/$version/linux-x86_64/tr/firefox-$version.tar.bz2
|
|
|
|
|
firefox.desktop)
|
2017-07-02 03:25:42 +02:00
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/bin
|
|
|
|
|
mkdir -p $PKG/usr/share/applications
|
|
|
|
|
mkdir -p $PKG/usr/share/icons/hicolor/128x128/apps
|
|
|
|
|
mkdir -p $PKG//opt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Kurulum
|
2017-07-02 13:44:06 +02:00
|
|
|
|
cp -r firefox/ $PKG//opt/$_name
|
2017-07-02 03:25:42 +02:00
|
|
|
|
|
|
|
|
|
# /usr/bin symlinks
|
2017-07-02 13:44:06 +02:00
|
|
|
|
ln -s /opt/$_name/firefox $PKG/usr/bin/$_name
|
2017-07-02 03:25:42 +02:00
|
|
|
|
|
|
|
|
|
# Masaüstü
|
2017-07-02 13:44:06 +02:00
|
|
|
|
install -m644 $_name.desktop $PKG/usr/share/applications/
|
2017-07-02 03:25:42 +02:00
|
|
|
|
|
|
|
|
|
# Simgeler
|
|
|
|
|
for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
|
|
|
|
|
install -d $PKG/usr/share/icons/hicolor/$i/apps/
|
2017-07-02 13:44:06 +02:00
|
|
|
|
ln -s /opt/$_name/browser/chrome/icons/default/default${i/x*}.png \
|
|
|
|
|
$PKG/usr/share/icons/hicolor/$i/apps/$_name.png
|
2017-07-02 03:25:42 +02:00
|
|
|
|
done
|
|
|
|
|
_distini="$PKG/opt/firefox/distribution/distribution.ini"
|
|
|
|
|
install -Dm644 /dev/stdin "$_distini" <<END
|
|
|
|
|
[Global]
|
|
|
|
|
id=Milis
|
|
|
|
|
version=1.0 Atilla
|
|
|
|
|
about=Milis Lİnux 1.0 için Mozilla Firefox
|
|
|
|
|
|
|
|
|
|
[Preferences]
|
|
|
|
|
app.distributor=milis
|
2017-07-02 13:44:06 +02:00
|
|
|
|
app.distributor.channel=$_name
|
2017-07-02 03:25:42 +02:00
|
|
|
|
app.partner.archlinux=milis
|
|
|
|
|
END
|
|
|
|
|
# 128x128
|
2017-07-02 13:44:06 +02:00
|
|
|
|
ln -s /opt/$_name/browser/icons/mozicon128.png \
|
|
|
|
|
$PKG/usr/share/icons/hicolor/128x128/apps/$_name.png
|
2017-07-02 03:25:42 +02:00
|
|
|
|
}
|