summaryrefslogtreecommitdiff
path: root/community/dia/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/dia/PKGBUILD')
-rw-r--r--community/dia/PKGBUILD13
1 files changed, 8 insertions, 5 deletions
diff --git a/community/dia/PKGBUILD b/community/dia/PKGBUILD
index a35cb8b85..e8cc28731 100644
--- a/community/dia/PKGBUILD
+++ b/community/dia/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 63528 2012-02-05 11:53:40Z ibiru $
+# $Id: PKGBUILD 69446 2012-04-16 11:44:58Z spupykin $
# Maintainer: Thorsten Töpper <atsutane-tu@freethoughts.de>
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Juergen Hoetzel <juergen@archlinux.org>
@@ -6,16 +6,16 @@
pkgname=dia
pkgver=0.97.2
-pkgrel=2
+pkgrel=3
pkgdesc="A GTK+ based diagram creation program"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://live.gnome.org/Dia"
install=dia.install
-depends=('libxslt' 'desktop-file-utils' 'libart-lgpl' 'gtk2')
+depends=('libxslt' 'desktop-file-utils' 'libart-lgpl' 'gtk2' 'hicolor-icon-theme')
makedepends=('intltool' 'python2' 'docbook-xsl')
optdepends=('python2')
-options=('!libtool' 'docs')
+options=('!libtool' 'docs' '!emptydirs')
source=("ftp://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.97/${pkgname}-${pkgver}.tar.xz"
"dia-overflow-fix.patch")
md5sums=('1e1180a513fb567709b09bc19f12105e'
@@ -25,6 +25,9 @@ build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export PYTHON=/usr/bin/python2
+ for file in `find -type f -name '*.py'`; do
+ sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' "$file"
+ done
sed -i 's#python2\.1#python2 python2.1#' configure
# patch -p1 <$srcdir/dia-overflow-fix.patch
@@ -44,5 +47,5 @@ package() {
make DESTDIR="${pkgdir}" install
cd doc
make DESTDIR="${pkgdir}" install-html
- ln -sf dia/html "${pkgdir}"/usr/share/dia/help
+ ln -sf ../doc/dia/html "${pkgdir}"/usr/share/dia/help
}