updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / galeon / PKGBUILD
blob3fa0528f60e835d49ec5e991f5c63ba1a28a0cae
1 # Maintainer: M Rawash <mrawash@gmail.com>
2 pkgname=galeon
3 pkgver=2.0.7
4 pkgrel=4
5 pkgdesc="A GNOME web browser based on the gecko rendering engine."
6 arch=('i686' 'x86_64')
7 license=('GPL2')
8 url="http://galeon.sourceforge.net/"
9 depends=('xulrunner' 'gnome-desktop2' 'libgnomeui')
10 makedepends=('intltool' 'rarian')
11 install=galeon.install
12 source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2
13                 0001-Use-existing-network-status-icons-for-the-online-off.patch
14                 0001-Workaround-embed-missing-crash.patch
15                 0001-Workaround-tab-label-related-crashes.patch
16                 galeon-1.3.2-home.patch
17                 galeon-2.0.7-bug418439.patch
18                 galeon-2.0.7-dfltfont.patch
19                 galeon-2.0.7-dockcrash.patch
20                 galeon-2.0.7-fix-str-fmt.patch
21                 galeon-2.0.7-gtkprint.patch
22                 galeon-2.0.7-jsconsole.patch
23                 galeon-2.0.7-libX11.patch
24                 galeon-2.0.7-moz191.patch
25                 galeon-2.0.7-moz192.patch
26                 galeon-2.0.7-nojavaconsole.patch
27                 galeon-2.0.7-plugins.patch
28                 galeon-2.0.7-spinnericon.patch
29                 galeon-2.0.7-warnings.patch)
30     
31 md5sums=('2eede1f43e3f6f2ac4ce7d4db99b15b2'
32          '072908a08c97b7c81c8e3c8e20fe5d8b'
33          '9c6cb38afa338a3b5ac958d12706d5d9'
34          'eee36e6e0e8ebc31aee0da795ac8b437'
35          'f66b400a289635eeb14b81d1ff9f8cb2'
36          'a8deccf54f338323779a681f19859156'
37          'fc614d8566786ccd2430389206f09951'
38          'c9d268fa1866eb639f3e47ada044abb8'
39          '549beb4ad8c2184d0395118b370bc39a'
40          'f3425bdfa8026f5c6fa0bc22f6fd9f67'
41          'd6eab3051b8913e12b3d2c1400b93150'
42          '1a9d0935c44978d66209001143171899'
43          'c49b56656176690dad64c0a6f94169a1'
44          'd455fc971281daf97fbf5ad9fc7c279d'
45          '747808438b97ef5d38cec56f189a24db'
46          'e158a610c6aeee8f15dd89c5fb811723'
47          'c658c1d7bdf598e12e5aae701d7f9832'
48          '047188ae6d679b5922b016d0b563f0d8')
50 build() {
51   cd ${srcdir}/${pkgname}-${pkgver}
53   for i in `ls ${srcdir}/*.patch`; do
54     patch -Np1 -i ${i} || return 1
55   done
57   sed -i s/libxul-embedding-unstable/libxul/ configure.in || return 1
58   sed -i s/TextZoom/FullZoom/ mozilla/GaleonWrapper.cpp || return 1
60   autoreconf -fi || return 1
61   ./configure --prefix=/usr -sysconfdir=/etc \
62               --disable-nautilus-view \
63               --disable-werror \
64               --disable-dependency-tracking \
65               --with-mozilla=libxul
67   make CXXFLAGS='-std=gnu++0x'|| return 1
68   make  GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir" install || return 1
70   #gconf schema
71   install -m755 -d "$pkgdir"/usr/share/gconf/schemas
72   gconf-merge-schema "$pkgdir"/usr/share/gconf/schemas/${pkgname}.schemas \
73                         "$pkgdir"/etc/gconf/schemas/*.schemas || return 1
74   rm -f "$pkgdir"/etc/gconf/schemas/*.schemas
76   #docs
77   mkdir -p ${pkgdir}/usr/share/doc/${pkgname}
78   cp {AUTHORS,ChangeLog,NEWS,README*,INSTALL,THANKS,TODO,FAQ*} ${pkgdir}/usr/share/doc/${pkgname}