PKGBUILDs/extra/autotrace/PKGBUILD
2009-10-09 21:23:22 -05:00

30 lines
1 KiB
Bash

# $Id: PKGBUILD 43965 2009-06-30 08:12:05Z allan $
# Maintainer: damir <damir@archlinux.org>
# Contributor: forest76 <forestt@poczta.onet.pl>
# Thanx to: neri for the IM-detection fix
pkgname=autotrace
pkgver=0.31.1
pkgrel=9
pkgdesc="autotrace is a utility to trace bitmaps: convert bitmaps to vector graphics"
arch=('i686' 'x86_64')
url='http://autotrace.sourceforge.net/'
license=('GPL' 'LGPL')
depends=('pstoedit' 'imagemagick>=6.5.3.10')
options=('!libtool')
source=(http://downloads.sourceforge.net/autotrace/$pkgname-$pkgver.tar.gz
aclocal-fixes.patch)
md5sums=('54eabbb38d2076ded6d271e1ee4d0783' '94b82727bb1749fc252ddba43ad586f2')
build() {
cd $startdir/src/$pkgname-$pkgver
patch -Np0 -i ${startdir}/src/aclocal-fixes.patch || return 1
# Fix IM detection for 6.x.y:
sed -i 's|\\>= 2|\\>= 0|' configure
chmod 755 configure
./configure --prefix=/usr --mandir=/usr/share/man --with-pstoedit --disable-pstoedittest PSTOEDIT_CONFIG=/bin/true
make LIBPSTOEDIT_LIBS+=-lpstoedit || return 1
make DESTDIR=$startdir/pkg install
}