Date: Tuesday, February 9, 2010 @ 16:03:05 Author: dgriffiths Revision: 67942
Move to splitpkg format Modified: scribus/trunk/PKGBUILD ----------+ PKGBUILD | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2010-02-09 21:00:21 UTC (rev 67941) +++ PKGBUILD 2010-02-09 21:03:05 UTC (rev 67942) @@ -1,15 +1,15 @@ -# $Id$ -# Maintainer: Ronald van Haren <ronald.archlinux.org> +# Contributor: Ronald van Haren <ronald.archlinux.org> # Contributor: tobias <tob...@archlinux.org> # Contributor: Ben <b...@benmazer.net> +# Maintainer: Daniel J Griffiths <ghost1...@archlinux.us> pkgname=scribus pkgver=1.3.5.1 pkgrel=2 pkgdesc="A desktop publishing program" arch=('i686' 'x86_64') +url="http://www.scribus.net" license=('GPL') -url="http://www.scribus.net" install=scribus.install depends=('libcups>=1.3.11' 'lcms>=1.18' 'qt' 'ghostscript>=8.70' \ 'libart-lgpl>=2.3.20' 'python>=2.6.2' 'libxml2>=2.7.3' 'cairo' \ @@ -20,22 +20,26 @@ md5sums=('4cadca0c780491ad61dc2d815776f10b') build() { - cd ${srcdir} - mkdir build - cd build - cmake ../${pkgname}-${pkgver} \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_SKIP_RPATH=ON \ - -DWANT_CAIRO=1 \ - -DLIB_SUFFIX="" - make || return 1 - make DESTDIR=${pkgdir} install + cd ${srcdir} + mkdir build + cd build + cmake ../${pkgname}-${pkgver} \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON \ + -DWANT_CAIRO=1 \ + -DLIB_SUFFIX="" + make || return 1 +} - # fix icon path in .desktop file - sed -i 's|Icon=scribus|Icon=/usr/share/scribus/icons/scribus.png|' \ - ${srcdir}/${pkgname}-${pkgver}/scribus.desktop +package() { + cd ${srcdir}/build + make DESTDIR=${pkgdir} install - install -Dm644 ${srcdir}/${pkgname}-${pkgver}/scribus.desktop \ - ${pkgdir}/usr/share/applications/scribus.desktop + # fix icon path in .desktop file + sed -i 's|Icon=scribus|Icon=/usr/share/scribus/icons/scribus.png|' \ + ${srcdir}/${pkgname}-${pkgver}/scribus.desktop + + install -Dm644 ${srcdir}/${pkgname}-${pkgver}/scribus.desktop \ + ${pkgdir}/usr/share/applications/scribus.desktop }