2016-01-10 00:40:17 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Muflone http://www.muflone.com/contacts/english/
|
|
|
|
# Contributor: Balló György <ballogyor+arch at gmail dot com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - mozconfig changes
|
2016-07-02 19:50:57 +00:00
|
|
|
# - upstream patch for https://bugzilla.mozilla.org/show_bug.cgi?id=1257019
|
2016-01-10 00:40:17 +00:00
|
|
|
|
|
|
|
highmem=1
|
|
|
|
|
|
|
|
pkgname=bluegriffon
|
2016-07-23 16:12:05 +00:00
|
|
|
pkgver=2.1.1
|
2016-07-02 19:50:57 +00:00
|
|
|
_mozilla_ver=f14898695ee0
|
2016-08-05 00:14:57 +00:00
|
|
|
pkgrel=2
|
2016-01-10 00:40:17 +00:00
|
|
|
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'
|
2016-07-02 19:50:57 +00:00
|
|
|
'nss' 'libevent' 'libvpx' 'libxt' 'python2' 'startup-notification' 'gconf')
|
|
|
|
makedepends=('autoconf2.13' 'libpulse' 'unzip' 'zip' 'yasm')
|
2016-01-10 00:40:17 +00:00
|
|
|
options=('!emptydirs')
|
2016-07-02 19:50:57 +00:00
|
|
|
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/therealglazou/${pkgname}/archive/${pkgver}.tar.gz"
|
2016-01-10 00:40:17 +00:00
|
|
|
"mozilla-central-${_mozilla_ver}.tar.bz2"::"http://hg.mozilla.org/mozilla-central/archive/${_mozilla_ver}.tar.bz2"
|
|
|
|
"mozconfig"
|
2016-07-02 19:50:57 +00:00
|
|
|
"${pkgname}.desktop"
|
|
|
|
"bug_1257019.patch"::"https://hg.mozilla.org/mozilla-central/raw-rev/d5e77c8d64c9")
|
2016-07-23 16:12:05 +00:00
|
|
|
sha256sums=('50810c4b287c1cd14aedbfff48dd93df4ff3c590e0dcca52f7ef28841b49e5ee'
|
2016-07-02 19:50:57 +00:00
|
|
|
'0b13213b5f9b3819b56872f7fb4fa7a1170ade06f8797dc11114e5f7c8eabca2'
|
|
|
|
'b548bd055dbddc0cae7ad9d9e98b9f540b2838003bacf69e10928842baa77c03'
|
|
|
|
'882133b77840356985a81e496b4ddc443f8f33c068cfb7ef0858497820adcfff'
|
|
|
|
'cae36525cffd2869b5c76c1f48eac4d77e4b8b1c0767a0ddb967596f9dc6d717')
|
2016-01-10 00:40:17 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/mozilla-central-${_mozilla_ver}"
|
|
|
|
|
|
|
|
# Move files to their correct location
|
2016-07-02 19:50:57 +00:00
|
|
|
cp -r "${srcdir}/${pkgname}-${pkgver}" bluegriffon
|
2016-01-10 00:40:17 +00:00
|
|
|
cp "${srcdir}/mozconfig" .mozconfig
|
|
|
|
|
|
|
|
# Apply BlueGriffon's upstream customizations
|
|
|
|
patch -Np1 -i bluegriffon/config/content.patch
|
|
|
|
|
2016-07-02 19:50:57 +00:00
|
|
|
# ALARM
|
|
|
|
patch -p1 -i ../bug_1257019.patch
|
|
|
|
|
2016-01-10 00:40:17 +00:00
|
|
|
# python2 fix
|
|
|
|
find . -name \*.py -exec sed -i 's@^#.*python$@#!/usr/bin/python2@' '{}' \;
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/mozilla-central-${_mozilla_ver}"
|
|
|
|
|
|
|
|
# configure script misdetects the preprocessor without an optimization level
|
|
|
|
# https://bugs.archlinux.org/task/34644
|
|
|
|
export CPPFLAGS+=' -O2'
|
|
|
|
export PYTHON=python2
|
|
|
|
|
|
|
|
# Build the package
|
|
|
|
./mach build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/mozilla-central-${_mozilla_ver}"
|
|
|
|
|
|
|
|
# Install files
|
|
|
|
install -m 755 -d "${pkgdir}/usr/lib/${pkgname}"
|
|
|
|
cp -LR bg/dist/bin/* "${pkgdir}/usr/lib/${pkgname}"
|
|
|
|
|
|
|
|
# Install executable file
|
|
|
|
install -m 755 -d "${pkgdir}/usr/bin"
|
|
|
|
ln -sf /usr/lib/${pkgname}/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
|
|
|
|
|
|
|
|
# Install icons
|
|
|
|
cp bg/dist/branding/mozicon128.png bg/dist/branding/default128.png
|
|
|
|
for _icon in 16 32 48 128; do
|
|
|
|
install -Dm644 bg/dist/branding/default${_icon}.png \
|
|
|
|
"${pkgdir}/usr/share/icons/hicolor/${_icon}x${_icon}/apps/${pkgname}.png"
|
|
|
|
done
|
|
|
|
|
|
|
|
# Install desktop file
|
|
|
|
install -Dm644 ../${pkgname}.desktop \
|
|
|
|
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
|
|
|
|
|
|
|
# Use system-provided dictionaries
|
|
|
|
rm -rf "${pkgdir}/usr/lib/${pkgname}/dictionaries"
|
|
|
|
ln -sf /usr/share/hunspell "${pkgdir}/usr/lib/${pkgname}/dictionaries"
|
|
|
|
rm -rf "${pkgdir}/usr/lib/${pkgname}hyphenation"
|
|
|
|
ln -sf /usr/share/hyphen "${pkgdir}/usr/lib/${pkgname}/hyphenation"
|
|
|
|
}
|