SHARE
TWEET

cairo-ubuntu-1.13.1

a guest Sep 24th, 2014 221 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.1
  10. _ubver=0ubuntu1
  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~20140204.orig.tar.xz
  22.         https://launchpad.net/ubuntu/+archive/primary/+files/cairo_1.13.0~20140204-$_ubver.debian.tar.gz
  23.         cairo-respect-fontconfig.patch)
  24. md5sums=('SKIP'
  25.          'SKIP'
  26.          'SKIP')
  27.  
  28. build() {
  29.   cd cairo-$pkgver
  30.  
  31.   for _f in $(cat "$srcdir/debian/patches/series" | grep -v '#') ; do    
  32.     patch -Np1 -i "$srcdir/debian/patches/$_f"
  33.   done
  34.  
  35.   patch -Np1 -i "$srcdir/cairo-respect-fontconfig.patch"
  36.  
  37.   autoreconf -vfi
  38.   ./configure --prefix=/usr \
  39.         --sysconfdir=/etc \
  40.         --localstatedir=/var \
  41.         --disable-static \
  42.         --enable-tee \
  43.         --enable-gl \
  44.         --enable-egl \
  45.         --enable-svg \
  46.         --enable-ps \
  47.         --enable-pdf \
  48.         --enable-gobject
  49.   make
  50. }
  51.  
  52. package() {
  53.   cd cairo-$pkgver
  54.   make DESTDIR="$pkgdir" install
  55. }
RAW Paste Data
Top