community/bluegriffon to 2.0-1

This commit is contained in:
Kevin Mihelich 2016-07-02 19:50:57 +00:00
parent 8e91079b08
commit 872622299f
2 changed files with 32 additions and 61 deletions

View file

@ -4,64 +4,57 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - mozconfig changes
# - disable gold linker on AArch64
# - patch for Mozilla bug 1151829 (https://bugzilla.mozilla.org/show_bug.cgi?id=1151829)
# - patch for Mozilla bug 1141642 (https://bugzilla.mozilla.org/show_bug.cgi?id=1141642)
# - upstream patch for https://bugzilla.mozilla.org/show_bug.cgi?id=1257019
highmem=1
pkgname=bluegriffon
pkgver=1.8
_mozilla_ver=fec90cbfbaad
_github_ver=5961e4cbc9ea546f9d7e4b9a7f2bb6884d66a378
pkgrel=3
pkgver=2.0
_mozilla_ver=f14898695ee0
pkgrel=1
pkgdesc="The next-generation Web Editor based on the rendering engine of Firefox"
arch=('i686' 'x86_64')
url="http://bluegriffon.org/"
license=('MPL' 'GPL' 'LGPL')
depends=('alsa-lib' 'desktop-file-utils' 'dbus-glib' 'gtk2' 'hunspell' 'mozilla-common'
'nss' 'libevent' 'libvpx' 'libxt' 'python2' 'startup-notification')
makedepends=('autoconf2.13' 'libpulse' 'unzip' 'zip')
'nss' 'libevent' 'libvpx' 'libxt' 'python2' 'startup-notification' 'gconf')
makedepends=('autoconf2.13' 'libpulse' 'unzip' 'zip' 'yasm')
options=('!emptydirs')
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/therealglazou/${pkgname}/archive/${_github_ver}.tar.gz"
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/therealglazou/${pkgname}/archive/${pkgver}.tar.gz"
"mozilla-central-${_mozilla_ver}.tar.bz2"::"http://hg.mozilla.org/mozilla-central/archive/${_mozilla_ver}.tar.bz2"
"bug_1194520_add_ftfntfmt.patch"::"https://hg.mozilla.org/mozilla-central/raw-rev/af40750720b5"
"bug_1153109_CXX11_ABI.patch"::"https://hg.mozilla.org/mozilla-central/raw-rev/070d6e282fe4"
"bug_70722_include_next_in_cmath.patch"
"bug_1151829_profiler.patch"::"https://hg.mozilla.org/mozilla-central/raw-rev/ac8f93de22cb"
"bug_1141642_skia.patch"::"https://hg.mozilla.org/releases/mozilla-beta/raw-rev/538fd67bb637"
"mozconfig"
"${pkgname}.desktop")
sha256sums=('0c629f882a7b7fcdf4416871db8d522f43653b62c0e5a25168b1914af8448a11'
'95a9868b809664bd79727119eace53b9f6e97c54a137c28b7e6dda688aade6fd'
"${pkgname}.desktop"
"bug_1257019.patch"::"https://hg.mozilla.org/mozilla-central/raw-rev/d5e77c8d64c9")
sha256sums=('266c2e3c4c4d1e8aec7f7013980e28330976569543a2fe179b5b36264f216b02'
'0b13213b5f9b3819b56872f7fb4fa7a1170ade06f8797dc11114e5f7c8eabca2'
'3aea9a83bf304da5525f34a911712cf42f8ded1c8b6becf0a2cf8a4b4f7facd6'
'2df11bae529ce96d0133ba3ce076e0016350d66a7800a2253b19db13785a87fd'
'b981a29f6243373b9118990727c17a4dee24156a9af1ea0eb25f23acd51fd37b'
'e8b554858413218589cd9147fc0ba1944fcb4a6286a723b70045edd838454d0b'
'97ec774dee2ed6c954abe6e169d01a0502e649799cedce7ba5d480513052b12f'
'2625f693cd06b2120f07cc9701ec7b2bf5566b9bcf64d2888796e6e81eea3a86'
'882133b77840356985a81e496b4ddc443f8f33c068cfb7ef0858497820adcfff')
'b548bd055dbddc0cae7ad9d9e98b9f540b2838003bacf69e10928842baa77c03'
'882133b77840356985a81e496b4ddc443f8f33c068cfb7ef0858497820adcfff'
'cae36525cffd2869b5c76c1f48eac4d77e4b8b1c0767a0ddb967596f9dc6d717')
prepare() {
cd "${srcdir}/mozilla-central-${_mozilla_ver}"
# Move files to their correct location
cp -r "${srcdir}/${pkgname}-${_github_ver}" bluegriffon
cp -r "${srcdir}/${pkgname}-${pkgver}" bluegriffon
cp "${srcdir}/mozconfig" .mozconfig
# Disable gold on AArch64
[[ $CARCH == "aarch64" ]] && echo "ac_add_options --disable-gold" >> .mozconfig
# Apply patches
patch -p1 -i "${srcdir}/bug_1194520_add_ftfntfmt.patch"
patch -p1 -i "${srcdir}/bug_1153109_CXX11_ABI.patch"
patch -p1 -i "${srcdir}/bug_70722_include_next_in_cmath.patch"
patch -p1 -i "${srcdir}/bug_1151829_profiler.patch"
patch -p1 -i "${srcdir}/bug_1141642_skia.patch"
# patch -p1 -i "${srcdir}/bug_1194520_add_ftfntfmt.patch"
# patch -p1 -i "${srcdir}/bug_1153109_CXX11_ABI.patch"
# patch -p1 -i "${srcdir}/bug_70722_include_next_in_cmath.patch"
# Apply BlueGriffon's upstream customizations
patch -Np1 -i bluegriffon/config/content.patch
# ALARM
patch -p1 -i ../bug_1257019.patch
# python2 fix
find . -name \*.py -exec sed -i 's@^#.*python$@#!/usr/bin/python2@' '{}' \;
}

View file

@ -6,7 +6,6 @@
# ALARM options
ac_add_options --disable-elf-hack
ac_add_options --disable-neon
##############################
# tweak the following according to your wishes
@ -16,21 +15,22 @@ ac_add_options --enable-optimize
ac_add_options --enable-strip
#ac_add_options --enable-debug
#ac_add_options --disable-optimize
ac_add_options --enable-stdcxx-compat
##############################
# I build on a 4-cpu machine ; comment out or adapt to your own case
##############################
mk_add_options MOZ_MAKE_FLAGS="-s -j4"
##############################
# DO NOT MODIFY BELOW THIS LINE
##############################
ac_add_options --enable-application=bluegriffon
# System directories
mk_add_options MOZ_TOOLKIT_SEARCH=
ac_add_options --prefix=/usr
ac_add_options --libdir=/usr/lib
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/bg
ac_add_options --enable-application=bluegriffon
mk_add_options MOZ_TOOLKIT_SEARCH=
ac_add_options --disable-cpp-exceptions
mk_add_options MOZ_MEDIA_NAVIGATOR=1
# System libraries
ac_add_options --with-system-nspr
@ -42,46 +42,24 @@ ac_add_options --enable-system-sqlite
#ac_add_options --enable-system-ffi
#ac_add_options --enable-system-cairo
ac_add_options --enable-system-pixman
ac_add_options --enable-libnotify
ac_add_options --enable-system-lcms
ac_add_options --disable-necko-wifi
ac_add_options --with-system-jpeg
ac_add_options --with-system-png
ac_add_options --with-system-zlib
ac_add_options --with-system-bz2
ac_add_options --with-pthreads
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
# Features
ac_add_options --disable-necko-wifi
ac_add_options --disable-tests
ac_add_options --disable-airbag
ac_add_options --enable-places
ac_add_options --enable-storage
ac_add_options --disable-shared
ac_add_options --enable-static
ac_add_options --disable-mochitest
ac_add_options --disable-installer
ac_add_options --enable-xinerama
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --disable-xprint
ac_add_options --enable-pango
ac_add_options --enable-svg
ac_add_options --enable-canvas
ac_add_options --disable-javaxpcom
ac_add_options --disable-crashreporter
ac_add_options --enable-safe-browsing
ac_add_options --enable-gio
ac_add_options --disable-gnomevfs
ac_add_options --enable-webm
ac_add_options --disable-updater
ac_add_options --disable-update-packaging
ac_add_options --disable-webrtc
ac_add_options --disable-gstreamer
# Features
ac_add_options --enable-startup-notification
ac_add_options --enable-pulseaudio
ac_add_options --disable-debug-symbols
ac_add_options --enable-media-navigator
mk_add_options MOZ_MEDIA_NAVIGATOR=1