updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / instantbird / PKGBUILD
blob19fa381a385f602c05d9da6a6b64a526ff29a0c5
1 # Contributor: Connor Behan <connor.behan@gmail.com>
3 pkgname=instantbird
4 pkgver=1.1
5 pkgrel=1
6 pkgdesc="Instant messenger using libpurple and xulrunner"
7 arch=(i686 x86_64)
8 license=('MPL' 'GPL' 'LGPL')
9 url="http://instantbird.com"
10 depends=('xulrunner>=7.0')
11 makedepends=('unzip' 'zip' 'pkg-config' 'diffutils' 'python2' 'wireless_tools' 'yasm' 'mesa' 'autoconf2.13')
12 source=(http://instantbird.com/downloads/${pkgver}/${pkgname}-${pkgver}.src.tgz nss.patch python2.7.patch mozconfig ${pkgname}.desktop)
13 options=('!buildflags')
14 _xulnum=`ls /usr/lib | grep -m1 xulrunner-devel | sed -e 's/.*-//'`
16 build() {
17         cd ${srcdir}/${pkgname}-${pkgver}-src
18         cp ${srcdir}/mozconfig .
19         patch -Np1 -i ../nss.patch || return 1
20         patch -Np1 -i ../python2.7.patch || return 1
21         echo "ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-"${_xulnum} >> mozconfig
22         sed -i -e 's|\$LIBXUL_SDK/sdk|\$LIBXUL_SDK|g' configure.in
24         # May be affected by mozilla bug 559278 
25         CXXFLAGS="-std=gnu++0x" make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS" || return 1
28 package() {
29         cd ${srcdir}/obj-${pkgname}
30         sed -i -e "s|.*mozilla/toolkit/locales.*||g" -e "s|.*mozilla/extensions/spellcheck/locales.*||g" instantbird/locales/Makefile
31         make package || return 1
32         cd mozilla/dist
33         bsdtar -x -f ${pkgname}-${pkgver}.en-US.linux-${CARCH}.tar.bz2
35         mkdir -p ${pkgdir}/usr/bin
36         mkdir -p ${pkgdir}/usr/lib
37         mkdir -p ${pkgdir}/usr/share/pixmaps
38         mkdir -p ${pkgdir}/usr/share/applications
39         cp -R ./instantbird ${pkgdir}/usr/lib/instantbird
40         cd ${pkgdir}/usr/bin
41         ln -s /usr/lib/instantbird/instantbird instantbird
42         cd ${pkgdir}/usr/lib/instantbird
43         # No idea why this is needed now
44         ln -s /usr/lib/xulrunner-${_xulnum} xulrunner
45         install -D -m 644 icons/mozicon50.xpm ../../share/pixmaps/instantbird.xmp
46         install -D -m 644 ${srcdir}/instantbird.desktop ../../share/applications/instantbird.desktop
48 md5sums=('dccfa45c932f3685933867e2b3f2350a' '4f7bbaf0aeb48c6a0c0611f0ee27f586' 'e208958a011621ce56614dc1213d560f' '6aaa7fbc7276a552196a7e06acb0c5e8' 'eb364c644eb5a598909999b1c47260cc')