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

freetype2-ubuntu precise

By: cdprincipe on Jul 15th, 2013  |  syntax: Bash  |  size: 2.54 KB  |  views: 140  |  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. # Mantainer: Diego Principe <cdprincipeat gmaildot com>
  2. # Contributor: Matjaz Mozetic <rationalperseus@gmail.com>
  3. # Contributor: Tevin Zhang <mail2tevin {at} gmail {dot} com>
  4. # Contributor: Andrea Fagiani <andfagiani {at} gmail {dot} com>
  5. # Contributor: Paul Bredbury <brebs@sent.com>
  6. # Contributor: Biru Ionut <biru.ionut at gmail.com>
  7.  
  8. # Installation order:  freetype2-ubuntu fontconfig-ubuntu libxft-ubuntu cairo-ubuntu
  9. pkgname=freetype2-ubuntu
  10. pkgver=2.5.0.1
  11. _ubver=2.4.8-1
  12. _ubrel=precise
  13. pkgrel=99
  14. pkgdesc="TrueType font rendering library, with Ubuntu's LCD rendering patches"
  15. arch=('i686' 'x86_64')
  16. url="https://launchpad.net/ubuntu/+source/freetype"
  17. license=('GPL')
  18. depends=('zlib' 'bzip2' 'sh')
  19. conflicts=('freetype2' 'freetype2-cleartype' 'freetype2-lcd')
  20. provides=("freetype2=$pkgver")
  21. options=('!libtool')
  22. source=(http://downloads.sourceforge.net/sourceforge/freetype/freetype-${pkgver}.tar.bz2
  23.         https://launchpad.net/ubuntu/$_ubrel/+source/freetype/$_ubver/+files/freetype_$_ubver.diff.gz
  24.         freetype-2.2.1-enable-valid.patch
  25.         freetype-2.3.0-enable-spr.patch
  26.         freetype-2.4.11-enable-sph.patch)
  27.  
  28. md5sums=('c72e9010b1d986d556fc0b2b5fcbf31a'
  29.          '97a1f13bcf4c5e5a9fc32795fcc72c44'
  30.          '214119610444c9b02766ccee5e220680'
  31.          '38765b5cc604179bf3afe33671d8ae37'
  32.          '4d4a0caad7aa5e09bea0719cd80681bf')
  33.  
  34. prepare() {
  35.   cd "${srcdir}/freetype-${pkgver}"
  36.  
  37.   # Patch from ubuntu
  38.   patch -Np1 -i $srcdir/freetype_$_ubver.diff
  39.  
  40.  
  41.   sed -e "s/-p[0-9]\|.*otvalid\.patch//g" \
  42.       -i debian/patches-freetype/series
  43.  
  44.   sed -e 's/ src/ a\/src/g' \
  45.       -e '/^Index.*fbase.c/,/EOF/d' \
  46.       -i debian/patches-freetype/freetype-2.1.7-backwards.compat.patch
  47.  
  48.   for _f in $(cat debian/patches-freetype/series) ; do    
  49.     patch -Np1 -i debian/patches-freetype/$_f    
  50.   done
  51.  
  52.   # Patches from arch trunkcat debian/patches-freetype/series
  53.   patch -Np1 -i "${srcdir}/freetype-2.2.1-enable-valid.patch"
  54. #  patch -Np1 -i "${srcdir}/freetype-2.3.0-enable-spr.patch"
  55.   # Disabled for now due to resistance
  56.   # Kept here for easier rebuilds via ABS
  57.   # https://bugs.archlinux.org/task/35274
  58.   #patch -Np1 -i "${srcdir}/freetype-2.4.11-enable-sph.patch"
  59. }
  60.  
  61. build() {
  62.   cd ${srcdir}/freetype-${pkgver}
  63.  
  64.   # PNG support is useless if FT_CONFIG_OPTION_USE_PNG is disabled
  65.   ./configure --prefix=/usr --disable-static \
  66.     --without-png
  67.  
  68.   make
  69. }
  70.  
  71. check() {
  72.   cd "${srcdir}/freetype-${pkgver}"
  73.   make -k check
  74. }
  75.  
  76. package() {
  77.   cd ${srcdir}/freetype-${pkgver}
  78.   make DESTDIR=${pkgdir} install
  79. }
clone this paste RAW Paste Data