1
0
mirror of https://aur.archlinux.org/firedragon.git synced 2024-12-25 20:24:14 +00:00
firedragon/PKGBUILD

126 lines
4.1 KiB
Bash
Raw Normal View History

2021-05-25 10:25:32 +00:00
# Maintainer: dr460nf1r3 <dr460nf1r3 at garudalinux dot org>
2023-08-09 00:54:06 +00:00
# Co-Maintainer: FGD
# Co-Maintainer: stefanwimmer128 <info at stefanwimmer128 dot xyz>
2021-03-03 10:22:28 +00:00
_pkgver=11.12.2-2
_pkgrel=1
2024-03-19 21:54:43 +00:00
2021-03-03 10:22:28 +00:00
pkgname=firedragon
pkgver=${_pkgver%-*}
pkgrel=${_pkgver#*-}.${_pkgrel}
epoch=1
pkgdesc="Floorp fork build using custom branding and settings"
url='https://garudalinux.org'
arch=('x86_64')
license=('MPL2' 'Floorp Shared Source License')
depends=(dbus
dbus-glib
ffmpeg
gtk3
libpulse
libxss
libxt
mime-types
nss
pipewire
ttf-font
zlib)
makedepends=()
optdepends=('hunspell-dictionary: Spell checking'
'libnotify: Notification integration'
'networkmanager: Location detection via available WiFi networks'
'profile-sync-daemon: Load the browser profile into RAM'
'pulseaudio: Audio support'
'searx: Searching the web using a locally running searX instance'
'speech-dispatcher: Text-to-Speech'
'whoogle: Searching the web using a locally running Whoogle instance'
'xdg-desktop-portal: Screensharing with Wayland')
replaces=(firedragon-next)
options=(!debug
!emptydirs
!lto
!makeflags
!strip)
backup=("usr/lib/${pkgname}/${pkgname}.cfg"
"usr/lib/${pkgname}/distribution/policies.json")
source=(https://gitlab.com/api/v4/projects/55893651/packages/generic/firedragon/${_pkgver}/firedragon-v${_pkgver}.linux-x86_64.tar.bz2
https://gitlab.com/garuda-linux/firedragon/settings/-/raw/master/firedragon.psd
"${pkgname}.desktop")
sha256sums=('c90102d90af653e1051aee7c064a54c09132a0aba3fe7abee8068c23adae5444'
'61355930cc59813e7e610ffdab8a01e32be980fffe1dfd8f9654b8f8f9f7fdc0'
'53d3e743f3750522318a786befa196237892c93f20571443fdf82a480e7f0560')
install="${pkgname}.install"
2022-08-13 16:31:42 +00:00
2021-03-03 10:22:28 +00:00
package() {
cd "${srcdir}/${pkgname}"
install -Ddvm755 "${pkgdir}/usr/lib/${pkgname}"
cp -rvf "${srcdir}/firedragon/." "${pkgdir}/usr/lib/${pkgname}"
2021-03-03 10:22:28 +00:00
install -Ddvm755 "${pkgdir}/usr/bin"
ln -srfv "$pkgdir/usr/lib/$pkgname/${pkgname%-*}" "$pkgdir/usr/bin/${pkgname%-*}"
local vendorjs="${pkgdir}/usr/lib/${pkgname}/browser/defaults/preferences/vendor.js"
install -Dvm644 /dev/stdin "${vendorjs}" << END
// Use LANG environment variable to choose locale
pref("intl.locale.requested", "");
2021-03-03 10:22:28 +00:00
// Use system-provided dictionaries
pref("spellchecker.dictionary_path", "/usr/share/hunspell");
// Disable default browser checking.
pref("browser.shell.checkDefaultBrowser", false);
2021-03-03 10:22:28 +00:00
// Don't disable extensions in the application directory
pref("extensions.autoDisableScopes", 11);
2021-03-03 10:22:28 +00:00
// Enable GNOME Shell search provider
pref("browser.gnome-search-provider.enabled", true);
END
local distini="${pkgdir}/usr/lib/${pkgname}/distribution/distribution.ini"
install -Dvm644 /dev/stdin "${distini}" << END
2021-03-03 10:22:28 +00:00
[Global]
id=${pkgname}
version=${pkgver}-${pkgrel}
about=${pkgdesc}
2021-03-03 10:22:28 +00:00
[Preferences]
app.distributor=garudalinux
app.distributor.channel=${pkgname}
2021-03-03 10:22:28 +00:00
app.partner.garudalinux=garudalinux
END
# Use system certificates
local nssckbi="${pkgdir}/usr/lib/${pkgname}/libnssckbi.so"
if [[ -e "${nssckbi}" ]]; then
ln -srfv "${pkgdir}/usr/lib/libnssckbi.so" "${nssckbi}"
fi
# Make native messaging work
ln -s "/usr/lib/mozilla/native-messaging-hosts" "${pkgdir}/usr/lib/${pkgname}/native-messaging-hosts"
# GNOME search provider
local sprovider="$pkgdir/usr/share/gnome-shell/search-providers/$pkgname.search-provider.ini"
install -Dvm644 /dev/stdin "$sprovider" << END
[Shell Search Provider]
DesktopId=$pkgname.desktop
BusName=org.mozilla.${pkgname//-/}.SearchProvider
ObjectPath=/org/mozilla/${pkgname//-/}/SearchProvider
Version=2
2021-03-03 10:22:28 +00:00
END
# Application icons
for i in 16 32 48 64 128; do
install -Dvm644 browser/chrome/icons/default/default$i.png "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png"
done
# Replace duplicate binary with wrapper
# https://bugzilla.mozilla.org/show_bug.cgi?id=658850
ln -srfv "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/lib/$pkgname/${pkgname%-*}-bin"
# All the needed configuration files
install -Dvm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dvm644 "${srcdir}/${pkgname}.psd" "${pkgdir}/usr/share/psd/browsers/${pkgname}"
2021-03-03 10:22:28 +00:00
}