blob: 329466acde0816737804f16ac5e4c849885f70f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
# Contributor: Kyle Keen <keenerd@gmail.com>
pkgname=seamonkey
pkgver=2.53.18.2
pkgrel=1
pkgdesc="SeaMonkey internet suite"
arch=(x86_64)
url="https://www.seamonkey-project.org"
license=(MPL-2.0)
depends=(
at-spi2-core
bash
cairo
dbus
dbus-glib
fontconfig
freetype2
gcc-libs
gdk-pixbuf2
glib2
glibc
gtk3
hunspell
libevent
libffi
libpulse
libvpx
libx11
libxcb
libxcomposite
libxdamage
libxext
libxfixes
libxrender
libxt
mime-types
nspr
nss
pango
pixman
sqlite
startup-notification
zlib
)
makedepends=(
autoconf2.13
cargo
cbindgen
clang
imake
llvm
mesa
nasm
python
unzip
yasm
zip
)
optdepends=(
'libnotify: Notification integration'
'networkmanager: Location detection via available WiFi networks'
'pulseaudio: Audio support'
)
install="$pkgname.install"
options=(!lto)
source=(
"https://archive.seamonkey-project.org/releases/$pkgver/source/seamonkey-$pkgver.source.tar.xz"
"mozconfig"
)
sha256sums=(
'2422e824dbec0cb268d3741dcbf3f2b23a477437052300f181fa7b6c7c364fef'
'9554b2823d05c7d406325daec629c8b3f64e7d6a32db1bae5683c57d41de529f'
)
# Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
# Note: These are for Arch Linux use ONLY. For your own distribution, please
# get your own set of keys. Feel free to contact foutrelis@archlinux.org for
# more information.
_google_api_key=AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM
# Mozilla API keys (see https://location.services.mozilla.com/api)
# Note: These are for Arch Linux use ONLY. For your own distribution, please
# get your own set of keys. Feel free to contact heftig@archlinux.org for
# more information.
_mozilla_api_key=e05d56db0a694edc8b5aaebda3f2db6a
_archive="$pkgname-$pkgver"
prepare() {
cd "$_archive"
cp "$srcdir/mozconfig" .mozconfig
echo -n "$_google_api_key" > google-api-key
echo -n "$_mozilla_api_key" > mozilla-api-key
{
echo "ac_add_options --with-google-location-service-api-keyfile=${PWD@Q}/google-api-key"
echo "ac_add_options --with-google-safebrowsing-api-keyfile=${PWD@Q}/google-api-key"
echo "ac_add_options --with-mozilla-api-keyfile=${PWD@Q}/mozilla-api-key"
} >> .mozconfig
}
build() {
cd "$_archive"
# Don't use mold - fails.
LDFLAGS=$(printf '%s' "$LDFLAGS" | sed 's/-fuse-ld=[^[:space:]]*//')
export LDFLAGS
./mach build
}
package() {
cd "$_archive"
# shellcheck disable=SC1007
DESTDIR="$pkgdir" INSTALL_SDK= ./mach install
rm -rf "$pkgdir"/usr/lib/seamonkey/{dictionaries,hyphenation}
ln -s /usr/share/hunspell "$pkgdir/usr/lib/seamonkey/dictionaries"
ln -s /usr/share/hyphen "$pkgdir/usr/lib/seamonkey/hyphenation"
install -Dm644 comm/suite/branding/seamonkey/default128.png \
"$pkgdir/usr/share/pixmaps/seamonkey.png"
install -Dm644 toolkit/mozapps/installer/linux/rpm/mozilla.desktop \
"$pkgdir/usr/share/applications/seamonkey.desktop"
sed -i 's/@MOZ_APP_DISPLAYNAME@/SeaMonkey internet suite/' \
"$pkgdir/usr/share/applications/seamonkey.desktop"
sed -i 's/@MOZ_APP_NAME@/seamonkey/' "$pkgdir/usr/share/applications/seamonkey.desktop"
}
|