This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD freetype2-ubuntu ARCHLINUX

By: a guest on Jun 9th, 2013  |  syntax: Bash  |  size: 1.79 KB  |  views: 94  |  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: Matjaz Mozetic <rationalperseus@gmail.com>
  2. # Contributor: Tevin Zhang <mail2tevin {at} gmail {dot} com>
  3. # Contributor: Andrea Fagiani <andfagiani {at} gmail {dot} com>
  4. # Contributor: Paul Bredbury <brebs@sent.com>
  5. # Contributor: Biru Ionut <biru.ionut at gmail.com>
  6.  
  7. # Installation order:  freetype2-ubuntu fontconfig-ubuntu libxft-ubuntu cairo-ubuntu
  8. pkgname=freetype2-ubuntu
  9. pkgver=2.4.12
  10. _ubver=2.4.8-1
  11. pkgrel=1
  12. pkgdesc="TrueType font rendering library, with Ubuntu's LCD rendering patches"
  13. arch=('i686' 'x86_64')
  14. url="https://launchpad.net/ubuntu/precise/+source/freetype"
  15. license=('GPL')
  16. depends=('zlib')
  17. conflicts=('freetype2' 'freetype2-cleartype' 'freetype2-lcd')
  18. provides=("freetype2=$pkgver")
  19. options=('!libtool')
  20. source=(http://downloads.sourceforge.net/sourceforge/freetype/freetype-${pkgver}.tar.bz2
  21.         https://launchpad.net/ubuntu/precise/+source/freetype/$_ubver/+files/freetype_$_ubver.diff.gz
  22.         freetype-2.2.1-enable-valid.patch)
  23.  
  24. md5sums=('3463102764315eb86c0d3c2e1f3ffb7d'
  25.          '97a1f13bcf4c5e5a9fc32795fcc72c44'
  26.          '214119610444c9b02766ccee5e220680')
  27.  
  28. build() {
  29.   cd ${srcdir}/freetype-${pkgver}
  30.  
  31.   # Patch from ubuntu
  32.   patch -Np1 -i $srcdir/freetype_$_ubver.diff
  33.  
  34.   sed -e "s/-p[0-9]\|.*otvalid\.patch//g" \
  35.       -i debian/patches-freetype/series
  36.  
  37.   sed -e 's/ src/ a\/src/g' \
  38.       -e '/^Index.*fbase.c/,/EOF/d' \
  39.       -i debian/patches-freetype/freetype-2.1.7-backwards.compat.patch
  40.  
  41.   for _f in $(cat debian/patches-freetype/series) ; do    
  42.     patch -Np1 -i debian/patches-freetype/$_f    
  43.   done
  44.  
  45.   # Patches from arch trunk
  46.   patch -Np1 -i "${srcdir}/freetype-2.2.1-enable-valid.patch"
  47.  
  48.   ./configure --prefix=/usr
  49.   make
  50. }
  51.  
  52. package() {
  53.   cd ${srcdir}/freetype-${pkgver}
  54.   make DESTDIR=${pkgdir} install
  55. }
clone this paste RAW Paste Data