updated on Mon Jan 23 00:00:36 UTC 2012
[aur-mirror.git] / scribus-stable / PKGBUILD
blobcd1a28a3f77a0a0b33c3e7c303c64905113730ff
1 # Maintainer: Ricardo Hernandez <richerve@archlinux.com.ve>
3 pkgname=scribus-stable
4 _realname=scribus
5 pkgver=1.3.3.14
6 pkgrel=2
7 pkgdesc="A desktop publishing program. Stable version"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 url="http://www.scribus.net"
11 install=scribus.install
12 depends=('libcups>=1.3.11' 'lcms>=1.18' 'qt3>=3.3.8' 'ghostscript>=8.60' \
13          'libart-lgpl>=2.3.10' 'python>=2.3' 'libxml2>=2.6.0' 'cairo' \
14          'desktop-file-utils' 'shared-mime-info' 'freetype2>=2.1.3' 'libtiff>=3.6.0')
15 makedepends=('cmake')
16 provides='scribus'
17 conflicts='scribus' 
18 options=(!libtool !makeflags)
19 source=(http://downloads.sourceforge.net/sourceforge/${_realname}/${_realname}-${pkgver}.tar.bz2)
21 build() {
22   cd ${srcdir}/${_realname}-${pkgver}
23   cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr \
24           -DCMAKE_BUILD_TYPE=Release \
25           -DCMAKE_SKIP_RPATH=ON \
26           -DWANT_CAIRO=1 -DLIB_SUFFIX="" 
27   make || return 1
28   make DESTDIR=${pkgdir} install
30   # fix icon path in .desktop file
31   sed -i 's|Icon=scribus|Icon=/usr/share/scribus/icons/scribus.png|' vnd.scribus.desktop
32   #sed -i 's|GenericName=Page Layout (Development)|GenericName=Page Layout (Stable)|' vnd.scribus.desktop
34   install -Dm644 vnd.scribus.desktop \
35   ${pkgdir}/usr/share/applications/scribus.desktop
38 md5sums=('347f9dd7f9e1924218c5975811abf05a')