Advertisement
berndb

cairo-ubuntu 1.13.1

Jun 22nd, 2014
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.80 KB | None | 0 0
  1. # Maintainer: Ner0
  2. # Contributor: Tevin Zhang <mail2tevin {at} gmail {dot} com>
  3. # Contributor: Paul Bredbury <brebs@sent.com>
  4. # Contributor: Biru Ionut <biru.ionut at gmail.com>
  5. # Contributor: Andrea Fagiani <andfagiani {at} gmail {dot} com>
  6.  
  7. # Installation order:  freetype2-ubuntu fontconfig-ubuntu libxft-ubuntu cairo-ubuntu
  8. pkgname=cairo-ubuntu
  9. pkgver=1.13
  10. _ubver=$pkgver-0ubuntu20140204
  11. pkgrel=1
  12. pkgdesc="Cairo vector graphics library, with Ubuntu's LCD rendering patches"
  13. arch=('i686' 'x86_64')
  14. url="http://cairographics.org/"
  15. license=('LGPL' 'MPL')
  16. depends=('libpng' 'libxrender' 'libxext' 'fontconfig' 'pixman>=0.28.0' 'glib2' 'mesa>=9.1' 'sh' 'lzo2')
  17. makedepends=('mesa>=9.1' 'librsvg' 'gtk2' 'poppler-glib')
  18. provides=("cairo=$pkgver" "cairo-tee=$pkgver")
  19. conflicts=('cairo' 'cairo-cleartype' 'cairo-lcd' 'cairo-tee' 'cairo-xeffects')
  20. options=('!libtool')
  21. source=(https://launchpad.net/ubuntu/+archive/primary/+files/cairo_1.13.0%7E20140204.orig.tar.xz
  22.         https://launchpad.net/ubuntu/+archive/primary/+files/cairo_1.13.0%7E20140204-0ubuntu1.debian.tar.gz
  23.         cairo-respect-fontconfig.patch)
  24.        
  25. md5sums=('5f27b0b8179b113c1df6ba48fbc6c39b'
  26.          'b986adc197f89875efbcbbb204ed4a0c'
  27.          '79f7c141c49f3d65ab308cc706d50914')
  28.  
  29. build() {
  30.   cd cairo-$pkgver.$pkgrel
  31.  
  32.   for _f in $(cat "$srcdir/debian/patches/series" | grep -v '#') ; do    
  33.     patch -Np1 -i "$srcdir/debian/patches/$_f"
  34.   done
  35.  
  36.   patch -Np1 -i "$srcdir/cairo-respect-fontconfig.patch"
  37.  
  38.   autoreconf -vfi
  39.   ./configure --prefix=/usr \
  40.     --sysconfdir=/etc \
  41.     --localstatedir=/var \
  42.     --disable-static \
  43.     --enable-tee \
  44.     --enable-gl \
  45.     --enable-egl \
  46.     --enable-svg \
  47.     --enable-ps \
  48.     --enable-pdf \
  49.     --enable-gobject
  50.   make
  51. }
  52.  
  53. package() {
  54.   cd cairo-$pkgver.$pkgrel
  55.   make DESTDIR="$pkgdir" install
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement