updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / prism-svn / PKGBUILD
blobf45933e38fc5de56f89bc7a2c7b34984a231eaf1
1 # Maintainer: fauno <fauno@kiwwwi.com.ar>
2 # Based on xulrunner by
3 # Contributor: Alexander Baldeck <alexander@archlinux.org>
4 # Contributor: Jan de Groot <jgc@archlinux.org>
5 pkgname=prism-svn
6 pkgver=1.0b4
7 _ffoxver=3.6.8
8 _xulver=1.9.2
9 pkgrel=2
10 pkgdesc="Prism is an application that lets users split web applications out of their browser and run them directly on their desktop."
11 arch=(i686 x86_64)
12 license=('MPL' 'GPL' 'LGPL')
13 depends=("xulrunner>=${_xulver}")
14 makedepends=('subversion')
15 optdepends=()
16 provides=('prism')
17 url="https://mozillalabs.com/prism/"
18 source=(http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${_ffoxver}/source/firefox-${_ffoxver}.source.tar.bz2
19         mozconfig)
21 _svnroot="http://svn.mozilla.org/projects/webrunner/trunk"
22 _svntrunk="prism"
24 build() {
25   cd "${srcdir}/mozilla-${_xulver}"
26   cp "${srcdir}/mozconfig" .mozconfig
27   mkdir -p mozilla-obj/
29   svn co $_svnroot $_svntrunk
31   unset CFLAGS
32   unset CXXFLAGS
34   make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS" || return 1
37 package() {
38   cd ${srcdir}/mozilla-${_xulver}/mozilla-obj/prism/dist/bin
40   install -dm755 ${pkgdir}/usr/{bin,lib/${_svntrunk}-${pkgver}}
42   cp -rL {chrome,components,defaults,extensions,modules,nsinstall,prism,application.ini,run-mozilla.sh} ${pkgdir}/usr/lib/${_svntrunk}-${pkgver}/
44   ln -s /usr/lib/${_svntrunk}-${pkgver}/prism ${pkgdir}/usr/bin/
46 md5sums=('0ee5f14fd8be07513d16131027ebcb61'
47          '89f3e53b8a00b52fb9b0d78b5a1c55a1')