# $Id: PKGBUILD,v 1.12 2007/10/13 02:09:18 damir Exp $ # Contributor: Tobias Powalowski # Maintainer: damir pkgname=pstoedit pkgver=3.45 pkgrel=1 pkgdesc="Translates PostScript and PDF graphics into other vector formats" arch=(i686 x86_64) url="http://www.pstoedit.net/" license=('GPL') depends=("gcc-libs>=4.2.1" "plotutils>=2.5" "gd" "imagemagick") options=('!libtool') source=(http://downloads.sourceforge.net/pstoedit/pstoedit-$pkgver.tar.gz pstoedit-3.45-gcc-4.3.patch) md5sums=('071efc64d9edf5d942b407348ac7451d' '97c5893859c98f446e3b47423dc851fd') build() { cd $startdir/src/$pkgname-$pkgver # From http://www.redhat.com/archives/fedora-extras-commits/2008-February/msg05822.html patch -Np0 -i ../pstoedit-3.45-gcc-4.3.patch || return 1 # From http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/media-gfx/pstoedit/pstoedit-3.45.ebuild # imagemagick 6.4.0.2-1 has "long long" in its headers. sed -i -e "s/-pedantic //" configure || return 1 ./configure --prefix=/usr || return 1 # Needs -j1 to compile make -j1 || return 1 make DESTDIR=$startdir/pkg install || return 1 }