Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD

By: a guest on Feb 5th, 2012  |  syntax: None  |  size: 1.64 KB  |  views: 117  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Alessio Sergi <asergi at archlinux dot us>
  2.  
  3. pkgname=iscan
  4. pkgver=2.28.1
  5. pkgrel=2
  6. pkgdesc="A front-end for EPSON scanner/all-in-ones"
  7. arch=('i686' 'x86_64')
  8. url="http://avasys.jp/eng/linux_driver/"
  9. license=('GPL2' 'custom:AVASYSPL')
  10. depends=('gtk2' 'iscan-data' 'sane')
  11. makedepends=('gettext')
  12. conflicts=(${pkgname}-legacy)
  13. install=${pkgname}.install
  14. options=('!libtool')
  15. source=("http://linux.avasys.jp/drivers/${pkgname}/${pkgver}/${pkgname}_${pkgver}-3.tar.gz"
  16.         'iscan-2.28.1-libpng15.patch')
  17. md5sums=('df777c77425cde132ed94c13a47eb8d7'
  18.          'fc7db347c301683c01376056898f2792')
  19.  
  20. build() {
  21.   cd "${srcdir}/${pkgname}-${pkgver}"
  22.  
  23.   export LDFLAGS="${LDFLAGS} -ldl -lpng15"
  24.   patch -Np0 -i "${srcdir}/iscan-2.28.1-libpng15.patch"
  25.  
  26.   ./configure --prefix=/usr \
  27.               --enable-dependency-reduction \
  28.               --enable-frontend \
  29.               --enable-jpeg \
  30.               --enable-tiff \
  31.               --enable-png #--enable-gimp
  32.   make
  33. }
  34.  
  35. package() {
  36.   cd "${srcdir}/${pkgname}-${pkgver}"
  37.  
  38.   make DESTDIR="${pkgdir}" install
  39.  
  40.   # install sane file config
  41.   install -d -m755 "${pkgdir}/etc/sane.d"
  42.   install -m644 backend/epkowa.conf "${pkgdir}/etc/sane.d/epkowa.conf"
  43.  
  44.   # install desktop file
  45.   install -d -m755 "${pkgdir}/usr/share/applications"
  46.   install -m644 "${pkgname}.desktop" \
  47.     "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  48.  
  49.   # install license
  50.   install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
  51.   install -m644 "${srcdir}/${pkgname}-${pkgver}/non-free/AVASYSPL.en.txt" \
  52.     "${pkgdir}/usr/share/licenses/${pkgname}/AVASYSPL"
  53. }
  54.  
  55. # vim:set ts=2 sw=2 et: