name='firefox-bin'
version='128.0' release='1'
This commit is contained in:
67
firefox-bin/alr.sh
Normal file
67
firefox-bin/alr.sh
Normal file
@ -0,0 +1,67 @@
|
||||
name='firefox-bin'
|
||||
version='128.0'
|
||||
release='1'
|
||||
desc='Fast, Private & Safe Web Browser.'
|
||||
homepage='https://www.mozilla.org/firefox/'
|
||||
maintainer="Евгений Храмов <xpamych@yandex.ru>"
|
||||
architectures=('amd64')
|
||||
license=('MPL' 'GPL' 'LGPL')
|
||||
provides=('firefox')
|
||||
conflicts=('firefox' 'firefox-git')
|
||||
|
||||
deps=('gtk3'
|
||||
'libxt'
|
||||
'mime-types'
|
||||
'dbus-blib'
|
||||
'nss'
|
||||
'ttf-font'
|
||||
)
|
||||
|
||||
opt_deps=('ffmpeg: H264/AAC/MP3 decoding'
|
||||
'NetworkManager: Location detection via available WiFi networks'
|
||||
'libnotify: Notification integration'
|
||||
'speech-dispatcher: Text-to-Speech'
|
||||
'hunspell-en-US: Spell checking, American English'
|
||||
'hunspell-ru: Spell checking, Russian'
|
||||
)
|
||||
|
||||
sources=("https://archive.mozilla.org/pub/firefox/releases/$version/linux-x86_64/en-US/firefox-$version.tar.bz2")
|
||||
checksums=('SKIP')
|
||||
|
||||
options=(!strip)
|
||||
|
||||
package() {
|
||||
cd $srcdir
|
||||
# Create directories
|
||||
mkdir -p "$pkgdir"/usr/bin
|
||||
mkdir -p "$pkgdir"/usr/share/applications
|
||||
mkdir -p "$pkgdir"/opt
|
||||
|
||||
# Install
|
||||
cp -r firefox/ "$pkgdir"/opt/$name
|
||||
|
||||
# Launchers
|
||||
install -m755 $scriptdir/firefox.sh "$pkgdir"/usr/bin/firefox
|
||||
|
||||
# Desktops
|
||||
install -m644 $scriptdir/*.desktop "$pkgdir"/usr/share/applications/
|
||||
|
||||
# Icons
|
||||
for i in 16x16 32x32 48x48 64x64 128x128; do
|
||||
install -d "$pkgdir"/usr/share/icons/hicolor/$i/apps/
|
||||
ln -s /opt/$pkgname/browser/chrome/icons/default/default${i/x*}.png \
|
||||
"$pkgdir"/usr/share/icons/hicolor/$i/apps/firefox.png
|
||||
done
|
||||
|
||||
# Use system-provided dictionaries
|
||||
#rm -r "$pkgdir"/opt/firefox/dictionaries
|
||||
ln -Ts /usr/share/hunspell "$pkgdir"/opt/$pkgname/dictionaries
|
||||
ln -Ts /usr/share/hyphen "$pkgdir"/opt/$pkgname/hyphenation
|
||||
|
||||
# Use system certificates
|
||||
ln -sf /usr/lib/libnssckbi.so "$pkgdir"/opt/$pkgname/libnssckbi.so
|
||||
|
||||
# Disable update checks (managed by pacman)
|
||||
mkdir "$pkgdir"/opt/$pkgname/distribution
|
||||
install -m644 $scriptdir/policies.json "$pkgdir"/opt/$pkgname/distribution/
|
||||
}
|
Reference in New Issue
Block a user