Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 27th, 2013  |  syntax: None  |  size: 1.44 KB  |  views: 38  |  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: Alexander Rødseth <rodseth@gmail.com>
  2. # Contributor: Jan de Groot <jgc@archlinux.org>
  3. # Contributor: Paulius Palevicius <paulius@birzai.com>
  4.  
  5. pkgname=libgnomecups
  6. pkgver=0.2.3
  7. pkgrel=12
  8. pkgdesc="GNOME CUPS library"
  9. arch=('x86_64' 'i686')
  10. license=('LGPL' 'GPL')
  11. url="http://www.gnome.org/"
  12. depends=('libcups')
  13. makedepends=('perlxml')
  14. options=(!libtool)
  15. source=("http://ftp.gnome.org/pub/GNOME/sources/$pkgname/0.2/$pkgname-$pkgver.tar.bz2"
  16.         "libgnomecups_0.2.3-ignore-ipp-not-found.patch"
  17.         'gentoo1.patch::ftp://ftp.pl.scene.org/vol/rzm1/linux-gentoo-portage/net-print/libgnomecups/files/libgnomecups-0.2.3-glib.h.patch'
  18.         'gentoo2.patch::ftp://ftp.pl.scene.org/vol/rzm1/linux-gentoo-portage/net-print/libgnomecups/files/libgnomecups-0.2.3-cups-1.6.patch')
  19. md5sums=('dc4920c15c9f886f73ea74fbff0ae48b'
  20.          '973a1b9d93013ce431400a14b78f5d94'
  21.          'de094a91df09f2136f13e5380b9bfa84'
  22.          'b9e1d6a5eda9ecb98a1fcb6f8d0e9b4d')
  23.  
  24. build() {
  25.   cd "$srcdir/$pkgname-$pkgver"
  26.  
  27.   # This avoids generating huge 'IPP request failed with status 1030' lines
  28.   patch -Np1 -i "$srcdir/libgnomecups_0.2.3-ignore-ipp-not-found.patch"
  29.  
  30.   # Gentoo seems to have taken over the development
  31.   patch -Np1 -i "$srcdir/gentoo1.patch"
  32.   patch -Np1 -i "$srcdir/gentoo2.patch"
  33.  
  34.   ./configure --prefix=/usr
  35.   make
  36. }
  37.  
  38. package() {
  39.   cd "$srcdir/$pkgname-$pkgver"
  40.  
  41.   make DESTDIR="$pkgdir" install
  42. }
  43.  
  44. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data