Date: Thursday, February 21, 2013 @ 00:16:34
  Author: eric
Revision: 178369

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  scribus/repos/staging-i686/
  scribus/repos/staging-i686/PKGBUILD
    (from rev 178368, scribus/trunk/PKGBUILD)
  scribus/repos/staging-i686/scribus.install
    (from rev 178368, scribus/trunk/scribus.install)
  scribus/repos/staging-x86_64/
  scribus/repos/staging-x86_64/PKGBUILD
    (from rev 178368, scribus/trunk/PKGBUILD)
  scribus/repos/staging-x86_64/scribus.install
    (from rev 178368, scribus/trunk/scribus.install)

--------------------------------+
 staging-i686/PKGBUILD          |   52 +++++++++++++++++++++++++++++++++++++++
 staging-i686/scribus.install   |   11 ++++++++
 staging-x86_64/PKGBUILD        |   52 +++++++++++++++++++++++++++++++++++++++
 staging-x86_64/scribus.install |   11 ++++++++
 4 files changed, 126 insertions(+)

Copied: scribus/repos/staging-i686/PKGBUILD (from rev 178368, 
scribus/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD                               (rev 0)
+++ staging-i686/PKGBUILD       2013-02-20 23:16:34 UTC (rev 178369)
@@ -0,0 +1,52 @@
+# $Id$
+# Contributor: Ronald van Haren <ronald.archlinux.org>
+# Contributor: tobias <[email protected]>
+# Contributor: Ben <[email protected]>
+# Maintainer: Daniel J Griffiths <[email protected]>
+
+pkgname=scribus
+pkgver=1.4.2
+pkgrel=2
+pkgdesc="A desktop publishing program"
+arch=('i686' 'x86_64')
+url="http://www.scribus.net";
+license=('GPL')
+install=scribus.install
+depends=('libcups>=1.3.11' 'lcms2' 'qt4' 'ghostscript>=8.70' \
+         'libart-lgpl>=2.3.20' 'python2' 'libxml2>=2.7.3' 'cairo' \
+         'desktop-file-utils' 'shared-mime-info' \
+         'hyphen' 'aspell' 'boost-libs')
+makedepends=('cmake' 'boost' 'mesa')
+options=(!libtool)
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.xz)
+sha1sums=('6e67e98fa315a2890d9cbb12eed49ecebb7f11cb')
+
+build() {
+       cd "${srcdir}"
+
+       sed -i -e 's|#!/usr/bin/python|#!/usr/bin/python2|' \
+              -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+               
scribus-${pkgver}/scribus/plugins/scriptplugin/{samples,scripts}/*
+
+       mkdir build
+       cd build
+       cmake ../scribus-${pkgver} \
+          -DCMAKE_INSTALL_PREFIX=/usr \
+          -DCMAKE_BUILD_TYPE=Release \
+          -DCMAKE_SKIP_RPATH=ON \
+          -DWANT_CAIRO=1 \
+          -DLIB_SUFFIX=""
+       make
+}
+
+package() {
+       cd "${srcdir}/build"
+       make DESTDIR="${pkgdir}" install
+
+       # fix icon path in .desktop file
+       sed -i 's|Icon=scribus|Icon=/usr/share/scribus/icons/scribus.png|' \
+          "${srcdir}/scribus-${pkgver}/scribus.desktop"
+
+       install -Dm644 "${srcdir}/scribus-${pkgver}/scribus.desktop" \
+          "${pkgdir}/usr/share/applications/scribus.desktop"
+}

Copied: scribus/repos/staging-i686/scribus.install (from rev 178368, 
scribus/trunk/scribus.install)
===================================================================
--- staging-i686/scribus.install                                (rev 0)
+++ staging-i686/scribus.install        2013-02-20 23:16:34 UTC (rev 178369)
@@ -0,0 +1,11 @@
+post_install() {
+  update-mime-database usr/share/mime &> /dev/null
+  update-desktop-database -q
+}
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}

Copied: scribus/repos/staging-x86_64/PKGBUILD (from rev 178368, 
scribus/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD                             (rev 0)
+++ staging-x86_64/PKGBUILD     2013-02-20 23:16:34 UTC (rev 178369)
@@ -0,0 +1,52 @@
+# $Id$
+# Contributor: Ronald van Haren <ronald.archlinux.org>
+# Contributor: tobias <[email protected]>
+# Contributor: Ben <[email protected]>
+# Maintainer: Daniel J Griffiths <[email protected]>
+
+pkgname=scribus
+pkgver=1.4.2
+pkgrel=2
+pkgdesc="A desktop publishing program"
+arch=('i686' 'x86_64')
+url="http://www.scribus.net";
+license=('GPL')
+install=scribus.install
+depends=('libcups>=1.3.11' 'lcms2' 'qt4' 'ghostscript>=8.70' \
+         'libart-lgpl>=2.3.20' 'python2' 'libxml2>=2.7.3' 'cairo' \
+         'desktop-file-utils' 'shared-mime-info' \
+         'hyphen' 'aspell' 'boost-libs')
+makedepends=('cmake' 'boost' 'mesa')
+options=(!libtool)
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.xz)
+sha1sums=('6e67e98fa315a2890d9cbb12eed49ecebb7f11cb')
+
+build() {
+       cd "${srcdir}"
+
+       sed -i -e 's|#!/usr/bin/python|#!/usr/bin/python2|' \
+              -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+               
scribus-${pkgver}/scribus/plugins/scriptplugin/{samples,scripts}/*
+
+       mkdir build
+       cd build
+       cmake ../scribus-${pkgver} \
+          -DCMAKE_INSTALL_PREFIX=/usr \
+          -DCMAKE_BUILD_TYPE=Release \
+          -DCMAKE_SKIP_RPATH=ON \
+          -DWANT_CAIRO=1 \
+          -DLIB_SUFFIX=""
+       make
+}
+
+package() {
+       cd "${srcdir}/build"
+       make DESTDIR="${pkgdir}" install
+
+       # fix icon path in .desktop file
+       sed -i 's|Icon=scribus|Icon=/usr/share/scribus/icons/scribus.png|' \
+          "${srcdir}/scribus-${pkgver}/scribus.desktop"
+
+       install -Dm644 "${srcdir}/scribus-${pkgver}/scribus.desktop" \
+          "${pkgdir}/usr/share/applications/scribus.desktop"
+}

Copied: scribus/repos/staging-x86_64/scribus.install (from rev 178368, 
scribus/trunk/scribus.install)
===================================================================
--- staging-x86_64/scribus.install                              (rev 0)
+++ staging-x86_64/scribus.install      2013-02-20 23:16:34 UTC (rev 178369)
@@ -0,0 +1,11 @@
+post_install() {
+  update-mime-database usr/share/mime &> /dev/null
+  update-desktop-database -q
+}
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}

Reply via email to