Advertisement
timcowchip

xsane PKGBUILD

Aug 30th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. # $Id$
  2. # Maintainer: Celsius <timcowchip@gmail.com>
  3. # Contributor: Tobias Powalowski <tpowa@archlinux.org>
  4. # Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
  5.  
  6. pkgbase=xsane
  7. pkgname=('xsane')
  8. pkgver=0.998
  9. pkgrel=5
  10. arch=(i686 x86_64)
  11. url="http://www.xsane.org"
  12. license=('GPL2')
  13. makedepends=('gtk2' 'lcms' 'sane' 'zlib' 'libjpeg' 'gimp')
  14. source=(http://www.xsane.org/download/$pkgname-$pkgver.tar.gz
  15. xsane-0.995-xdg-open.patch)
  16. md5sums=('936f1cc76b37caa8f285e1e15ac7e0aa'
  17. '3b59a9d7b481b08514438d364d3f8012')
  18. prepare() {
  19. cd "$srcdir/$pkgname-$pkgver"
  20. # fix use "xdg-open" instead of "netscape" to launch help browser - taken from Fedora
  21. patch -Np1 -i ${srcdir}/xsane-0.995-xdg-open.patch
  22. sed -i -e 's:png_ptr->jmpbuf:png_jmpbuf(png_ptr):' src/xsane-save.c
  23. }
  24.  
  25. build() {
  26. cd "$srcdir/$pkgbase-$pkgver"
  27.  
  28. ./configure --prefix=/usr \
  29. --mandir=/usr/share/man \
  30. --enable-gimp
  31. gmake
  32. mv src/xsane src/xsane-gimp
  33.  
  34. # build again with gimp enabled
  35. gmake clean
  36. ./configure --prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man --disable-gimp
  37. gmake
  38. }
  39.  
  40. package_xsane() {
  41. pkgdesc="A GTK-based X11 frontend for SANE and plugin for Gimp."
  42. install=$pkgname.install
  43. depends=('gtk2' 'lcms' 'sane' 'zlib' 'libjpeg')
  44. optdepends=('xsane-gimp: for gimp plugin support')
  45. cd "$srcdir/$pkgbase-$pkgver"
  46. make DESTDIR="$pkgdir" install
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement