mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
89 lines
3.3 KiB
Bash
89 lines
3.3 KiB
Bash
# Maintainer: Kyle Keen <keenerd@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - mozconfig changes
|
|
# - patch to fix neon usage
|
|
|
|
highmem=1
|
|
buildarch=12
|
|
|
|
pkgname=seamonkey
|
|
pkgver=2.53.3
|
|
pkgrel=2
|
|
pkgdesc="SeaMonkey internet suite"
|
|
arch=('x86_64')
|
|
license=('MPL')
|
|
depends=('dbus-glib' 'gtk3' 'hunspell' 'icu'
|
|
'libevent' 'libpulse' 'libvpx' 'libxt' 'mime-types'
|
|
'nss' 'sqlite' 'startup-notification')
|
|
makedepends=('autoconf2.13' 'clang' 'gtk2' 'imake' 'llvm' 'mesa' 'python2-setuptools'
|
|
'python2-psutil' 'rust' 'yasm' 'unzip' 'zip')
|
|
optdepends=('networkmanager: Location detection via available WiFi networks'
|
|
'libnotify: Notification integration'
|
|
'pulseaudio: Audio support')
|
|
url="https://www.seamonkey-project.org/"
|
|
source=("https://archive.mozilla.org/pub/seamonkey/releases/$pkgver/source/seamonkey-$pkgver.source.tar.xz"
|
|
"mozconfig"
|
|
"xulrunner-27.0-build-arm.patch")
|
|
sha256sums=('2cc86fc22b8113eecd75ae68d4857664e2aadcca72eff4e602301ba0bd5fe48b'
|
|
'4f371c19959a0745b33a1ef76182c26ece9bcaa6d5b04050539c6c96f4e3a6f3'
|
|
'bc83b8a51c81a401da2fbe1f7cd0843248c32607d3a51119585df074d797922e')
|
|
install="$pkgname.install"
|
|
|
|
# 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
|
|
|
|
prepare() {
|
|
cd "$pkgname-$pkgver"
|
|
cp ../mozconfig .mozconfig
|
|
|
|
echo -n "$_google_api_key" > google-api-key
|
|
echo -n "$_mozilla_api_key" > mozilla-api-key
|
|
|
|
cat >> .mozconfig <<EOF
|
|
ac_add_options --with-google-location-service-api-keyfile=${PWD@Q}/google-api-key
|
|
ac_add_options --with-google-safebrowsing-api-keyfile=${PWD@Q}/google-api-key
|
|
ac_add_options --with-mozilla-api-keyfile=${PWD@Q}/mozilla-api-key
|
|
|
|
# ALARM
|
|
ac_add_options --disable-webrtc
|
|
EOF
|
|
|
|
[[ $CARCH != "aarch64" ]] && echo "ac_add_options --disable-elf-hack" >> .mozconfig
|
|
LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
|
|
patch -p2 -d mozilla -i "${srcdir}"/xulrunner-27.0-build-arm.patch
|
|
}
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
make -f client.mk build
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
make -f client.mk DESTDIR="$pkgdir" INSTALL_SDK= 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 suite/branding/seamonkey/default128.png \
|
|
"$pkgdir/usr/share/pixmaps/seamonkey.png"
|
|
|
|
install -Dm644 mozilla/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"
|
|
}
|