[arch-commits] Commit in scribus/trunk (PKGBUILD install scribus.install)

Gaetan Bisson bisson at nymeria.archlinux.org
Sun Jul 7 10:22:16 UTC 2013


    Date: Sunday, July 7, 2013 @ 12:22:16
  Author: bisson
Revision: 189756

rebuild for boost-1.54.0, general cleanup

Added:
  scribus/trunk/install
    (from rev 189749, scribus/trunk/scribus.install)
Modified:
  scribus/trunk/PKGBUILD
Deleted:
  scribus/trunk/scribus.install

-----------------+
 PKGBUILD        |   61 +++++++++++++++++++++++++-----------------------------
 install         |   11 +++++++++
 scribus.install |   11 ---------
 3 files changed, 40 insertions(+), 43 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-07-07 09:05:23 UTC (rev 189755)
+++ PKGBUILD	2013-07-07 10:22:16 UTC (rev 189756)
@@ -1,52 +1,49 @@
 # $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
 # Contributor: Ronald van Haren <ronald.archlinux.org>
 # Contributor: tobias <tobias at archlinux.org>
 # Contributor: Ben <ben at benmazer.net>
-# Maintainer: Daniel J Griffiths <ghost1227 at archlinux.us>
 
 pkgname=scribus
 pkgver=1.4.2
-pkgrel=2
-pkgdesc="A desktop publishing program"
+pkgrel=3
+pkgdesc='Desktop publishing software'
+url="http://www.scribus.net/"
+license=('GPL')
 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)
+depends=('qt4' 'cairo' 'lcms2' 'libcups' 'libxml2' 'hyphen'
+         'ghostscript' 'python2' 'aspell' 'boost-libs'
+         'desktop-file-utils' 'shared-mime-info')
+source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.xz")
 sha1sums=('6e67e98fa315a2890d9cbb12eed49ecebb7f11cb')
 
-build() {
-	cd "${srcdir}"
+options=('!libtool')
+install=install
 
-	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}/*
+prepare() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	sed 's|Icon=scribus|Icon=/usr/share/scribus/icons/scribus.png|' -i scribus.desktop
+	sed \
+		-e 's|#!/usr/bin/python|#!/usr/bin/python2|' \
+		-e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+		-i scribus/plugins/scriptplugin/{samples,scripts}/*
+	install -d ../build
+}
 
-	mkdir build
-	cd build
-	cmake ../scribus-${pkgver} \
-	   -DCMAKE_INSTALL_PREFIX=/usr \
-	   -DCMAKE_BUILD_TYPE=Release \
-	   -DCMAKE_SKIP_RPATH=ON \
-	   -DWANT_CAIRO=1 \
-	   -DLIB_SUFFIX=""
+build() {
+	cd "${srcdir}/build"
+	cmake "../${pkgname}-${pkgver}" \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DCMAKE_BUILD_TYPE=Release \
+		-DCMAKE_SKIP_RPATH=ON \
+		-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"
+	install -Dm644 "../${pkgname}-${pkgver}/scribus.desktop" "${pkgdir}/usr/share/applications/scribus.desktop"
 }

Copied: scribus/trunk/install (from rev 189749, scribus/trunk/scribus.install)
===================================================================
--- install	                        (rev 0)
+++ install	2013-07-07 10:22:16 UTC (rev 189756)
@@ -0,0 +1,11 @@
+post_install() {
+	update-mime-database usr/share/mime &> /dev/null
+	update-desktop-database -q
+}
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}

Deleted: scribus.install
===================================================================
--- scribus.install	2013-07-07 09:05:23 UTC (rev 189755)
+++ scribus.install	2013-07-07 10:22:16 UTC (rev 189756)
@@ -1,11 +0,0 @@
-post_install() {
-  update-mime-database usr/share/mime &> /dev/null
-  update-desktop-database -q
-}
-post_upgrade() {
-  post_install $1
-}
-
-post_remove() {
-  post_install $1
-}




More information about the arch-commits mailing list