From 789fabf41f4335f4448bb0ea43b194c4703fcfd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=28=D0=A5?= =?UTF-8?q?=D1=80=D0=B0=D0=BC=D1=8B=D1=87=D0=AA=29=20=D0=A5=D1=80=D0=B0?= =?UTF-8?q?=D0=BC=D0=BE=D0=B2?= Date: Tue, 27 May 2025 22:25:29 +0300 Subject: [PATCH] firefox-bin 139.0.0-3 --- firefox-bin/alr.sh | 12 +++++++----- firefox-bin/postinstall.sh | 4 ++++ firefox-bin/postremove.sh | 4 ++++ 3 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 firefox-bin/postinstall.sh create mode 100644 firefox-bin/postremove.sh diff --git a/firefox-bin/alr.sh b/firefox-bin/alr.sh index bc6adac..b0718a0 100644 --- a/firefox-bin/alr.sh +++ b/firefox-bin/alr.sh @@ -1,6 +1,6 @@ name='firefox-bin' version='139.0.0' -release='2' +release='3' desc='Fast, Private & Safe Web Browser.' desc_ru='Быстрый, конфиденциальный и безопасный веб-браузер.' homepage='https://www.mozilla.org/firefox/' @@ -54,6 +54,11 @@ checksums_386=('SKIP') options=(!strip) +scripts=( + ['postinstall']='postinstall.sh' + ['postremove']='postremove.sh' +) + package() { cd $srcdir # Create directories @@ -77,9 +82,6 @@ package() { "$pkgdir"/usr/share/icons/hicolor/$i/apps/firefox.png done - # Configure dictionaries and certificates - ln -Ts /usr/share/hunspell "$pkgdir"/opt/firefox/dictionaries - ln -Ts /usr/share/hyphen "$pkgdir"/opt/firefox/hyphenation ln -sf /usr/lib/libnssckbi.so "$pkgdir"/opt/firefox/libnssckbi.so # Disable update checks @@ -88,7 +90,7 @@ package() { } files() { - printf '"%s" ' ./opt/**/* + printf '"%s" ' ./opt/firefox/**/* printf '"%s" ' ./usr/share/icons/hicolor/*/apps/* echo ./usr/bin/firefox echo ./usr/share/applications/firefox.desktop diff --git a/firefox-bin/postinstall.sh b/firefox-bin/postinstall.sh new file mode 100644 index 0000000..bf7a585 --- /dev/null +++ b/firefox-bin/postinstall.sh @@ -0,0 +1,4 @@ + #!/usr/bin/env bash + + ln -sT /usr/share/hunspell "$pkgdir"/opt/firefox/dictionaries + ln -sT /usr/share/hyphen "$pkgdir"/opt/firefox/hyphenation \ No newline at end of file diff --git a/firefox-bin/postremove.sh b/firefox-bin/postremove.sh new file mode 100644 index 0000000..f2bd85e --- /dev/null +++ b/firefox-bin/postremove.sh @@ -0,0 +1,4 @@ + #!/usr/bin/env bash + +rm -rf /opt/firefox/dictionaries +rm -rf /opt/firefox/hyphenation \ No newline at end of file