updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / scribus-ng / PKGBUILD
bloba4cfb6af7064fafbde48b4401d1f88a714577aae
1 # Maintainer: John Haltiwanger <john.haltiwanger@gmail.com> 
3 pkgname=scribus-ng
4 pkgver=1.4.0rc3
5 pkgrel=1
6 pkgdesc="A desktop publishing program - 'NG' 1.4.0 release candidate"
7 arch=(i686 x86_64)
8 license=('GPL')
9 url="http://www.scribus.net"
10 install=${pkgname}.install
11 depends=('libcups>=1.2.10'       \
12          'lcms>=1.17'            \
13          'qt>=4.3.0'             \
14          'ghostscript>=8.60'     \
15          'libart-lgpl>=2.3.19'   \
16          'python2>=2.5'          \
17          'libxml2>=2.6.27'       \
18          'cairo'                 \
19          'desktop-file-utils'    \
20          'freetype2>=2.3.0'      \
21          'libtiff>=3.6.0'        \
22          'libjpeg'               \
23          'pixman>=0.15.16'       \
24          )
26 makedepends=('subversion' 'cmake' 'gcc>=4.0' 'make')
27 # options=(!libtool force !makeflags)
28 replaces=('scribus-devel')
29 provides=('scribus')
30 source=(${pkgname}.desktop)
31 md5sums=('e127bbe5f9e67c401f4094f1e99221d0')
33 _svntrunk='svn://scribus.net/branches/Version135'
34 _svnmod='Scribus'
36 build() {
37   cd $srcdir
39   if [ -d $_svnmod/.svn ]; then
40           (cd $_svnmod && svn up -r $pkgver)
41   else
42           svn co $_svntrunk --config-dir ./ $_svnmod -r $pkgver
43   fi
45   msg "SVN checkout done or server timeout"
46   msg "Starting make..."
47   
48   rm -rf $srcdir/$_svnmod-build
49   mkdir $_svnmod-build
50   cd $_svnmod-build
52 #  cmake ../$_svnmod/Scribus -DCMAKE_INSTALL_PREFIX:PATH=/opt/scribus/ -DWANT_SYSTEM_CAIRO=1
53   cmake ../$_svnmod/Scribus -DCMAKE_INSTALL_PREFIX:PATH=/opt/scribus/ -DWANT_PRIVATE_CAIRO=1
54   
55   sed -i 's|-Wl,--as-needed||' $srcdir/$_svnmod-build/scribus/CMakeFiles/scribus.dir/link.txt
56    
57   make
58   make DESTDIR=$pkgdir install
60   install -Dm644 $startdir/scribus-ng.desktop  $pkgdir/usr/share/applications/scribus-ng.desktop