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

Untitled

By: a guest on Sep 25th, 2012  |  syntax: None  |  size: 1.61 KB  |  views: 67  |  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: Tevin Zhang <mail2tevin {at} gmail {dot} com>
  2. # Contributor: Andrea Fagiani <andfagiani {at} gmail {dot} com>
  3. # Contributor: Biru Ionut <biru.ionut at gmail.com>
  4. # Contributor: Paul Bredbury <brebs@sent.com>
  5.  
  6. # Installation order:  freetype2-ubuntu fontconfig-ubuntu libxft-ubuntu cairo-ubuntu
  7. pkgname=fontconfig-ubuntu
  8. pkgver=2.8.0
  9. _ubver=2.8.0-3ubuntu9
  10. pkgrel=9
  11. pkgdesc="A library for configuring and customizing font access, with Ubuntu's LCD rendering
  12. patches."
  13. arch=('i686' 'x86_64')
  14. url="https://launchpad.net/ubuntu/precise/+source/fontconfig"
  15. license=('custom')
  16. depends=('expat>=2.0.1' 'freetype2-ubuntu>=2.3.11')
  17. conflicts=('fontconfig')
  18. provides=("fontconfig=$pkgver")
  19. options=('!libtool')
  20. install=fontconfig.install
  21. source=(http://archive.ubuntu.com/ubuntu/pool/main/f/fontconfig/fontconfig_$pkgver.orig.tar.gz
  22.         http://archive.ubuntu.com/ubuntu/pool/main/f/fontconfig/fontconfig_$_ubver.diff.gz)
  23.  
  24. md5sums=('77e15a92006ddc2adbb06f840d591c0e'
  25.          '9efc0828a5a38431d6a77f78383f8d7d')
  26.  
  27. build() {
  28.   cd $srcdir/fontconfig-$pkgver
  29.  
  30.   patch -Np1 -i ../fontconfig_$_ubver.diff
  31.  
  32.   for _f in $(cat debian/patches/series) ; do
  33.      patch -Np1 -i "debian/patches/$_f"
  34.   done
  35.  
  36.   # Enable Position Independent Code for prelinking
  37.   export CFLAGS="$CFLAGS -fPIC"
  38.   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  39.   make
  40.   make DESTDIR=$pkgdir install
  41.  
  42.   rm -f $pkgdir/etc/fonts/conf.d/*.conf
  43.  
  44.   # License
  45.   install -Dm0644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
  46.  
  47.   # Docs
  48.   install -Dm0644 debian/changelog $pkgdir/usr/share/doc/fontconfig/changelog
  49. }