Want more features on Pastebin? Sign Up, it's FREE!
Guest

freetype-ubuntu_2.5.2-3

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