1 # Maintainer: John Haltiwanger <john.haltiwanger@gmail.com>
6 pkgdesc="A desktop publishing program - 'NG' 1.4.0 release candidate"
9 url="http://www.scribus.net"
10 install=${pkgname}.install
11 depends=('libcups>=1.2.10' \
15 'libart-lgpl>=2.3.19' \
19 'desktop-file-utils' \
26 makedepends=('subversion' 'cmake' 'gcc>=4.0' 'make')
27 # options=(!libtool force !makeflags)
28 replaces=('scribus-devel')
30 source=(${pkgname}.desktop)
31 md5sums=('e127bbe5f9e67c401f4094f1e99221d0')
33 _svntrunk='svn://scribus.net/branches/Version135'
39 if [ -d $_svnmod/.svn ]; then
40 (cd $_svnmod && svn up -r $pkgver)
42 svn co $_svntrunk --config-dir ./ $_svnmod -r $pkgver
45 msg "SVN checkout done or server timeout"
46 msg "Starting make..."
48 rm -rf $srcdir/$_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
55 sed -i 's|-Wl,--as-needed||' $srcdir/$_svnmod-build/scribus/CMakeFiles/scribus.dir/link.txt
58 make DESTDIR=$pkgdir install
60 install -Dm644 $startdir/scribus-ng.desktop $pkgdir/usr/share/applications/scribus-ng.desktop