spacepaste

  1.  
  2. # Contributor: forest76 <forestt@poczta.onet.pl>
  3. # Contributor: Tilman Blumenbach <tilman@ax86.net>
  4. # Contributor: Christian Neukirchen <chneukirchen@gmail.com>
  5. pkgname=autotrace
  6. pkgver=0.31.1
  7. pkgrel=11
  8. pkgdesc='An utility to trace bitmaps: convert bitmaps to vector graphics'
  9. arch=('i686' 'x86_64')
  10. url='http://autotrace.sourceforge.net/'
  11. license=('GPL' 'LGPL')
  12. depends=('pstoedit' 'imagemagick>=6.5.3.10')
  13. makedepends=('pkg-config' 'autoconf')
  14. options=('!libtool')
  15. source=(http://downloads.sourceforge.net/autotrace/$pkgname-$pkgver.tar.gz
  16. build-fixes.patch libpng-1.5.patch configure.in.patch)
  17. md5sums=('54eabbb38d2076ded6d271e1ee4d0783'
  18. 'f44a610e531543f99271e389f8dc53c3'
  19. '55881b817aeae6b3bd6dfca9b2320ca3'
  20. 'c244feb9f17f717d6369471ab90fd71b')
  21. build() {
  22. _configure_args='--prefix=/usr'
  23. if [ `/usr/bin/pacman -Q pstoedit | cut -d ' ' -f 2` = '3.50-3' ]; then
  24. # This version of the pstoedit package is broken (FS #19221).
  25. warning \
  26. 'Broken pstoedit package found, disabling pstoedit support in AutoTrace.'
  27. _configure_args="${_configure_args} --without-pstoedit"
  28. fi
  29. cd "${srcdir}/${pkgname}-${pkgver}"
  30. patch -Np 1 -i "${srcdir}/build-fixes.patch"
  31. patch -Np 0 -i "${srcdir}/libpng-1.5.patch"
  32. patch -Np 1 -i "${srcdir}/configure.in.patch"
  33. mv configure.in configure.ac
  34. autoreconf -fi
  35. ./configure ${_configure_args}
  36. make
  37. }
  38. package() {
  39. cd "${srcdir}/${pkgname}-${pkgver}"
  40. make "DESTDIR=${pkgdir}" install
  41. }
  42.