Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

PKGBUILD freetype2-ubuntu ARCHLINUX

By: a guest on Jun 9th, 2013  |  syntax: Bash  |  size: 2.01 KB  |  hits: 51  |  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:
  2. # Contributor: Scott Bernynski <scott.bernynski@gmx.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. _pkgbasename=freetype2-ubuntu
  9. pkgname=lib32-$_pkgbasename
  10. pkgver=2.4.12
  11. _ubver=2.4.8-1
  12. pkgrel=1
  13. pkgdesc="TrueType font rendering library, with Ubuntu's LCD rendering patches (32-bit)"
  14. arch=('x86_64')
  15. url="https://launchpad.net/ubuntu/precise/+source/freetype"
  16. license=('GPL')
  17. depends=('lib32-zlib' 'freetype2-ubuntu')
  18. makedepends=('gcc-multilib')
  19. conflicts=('lib32-freetype2' 'lib32-freetype2-cleartype' 'lib32-freetype2-lcd')
  20. provides=("lib32-freetype2=$pkgver")
  21. options=('!libtool')
  22. source=(http://downloads.sourceforge.net/sourceforge/freetype/freetype-${pkgver}.tar.bz2
  23.         https://launchpad.net/ubuntu/precise/+source/freetype/$_ubver/+files/freetype_$_ubver.diff.gz
  24.         freetype-2.2.1-enable-valid.patch)
  25.  
  26. md5sums=('3463102764315eb86c0d3c2e1f3ffb7d'
  27.          '97a1f13bcf4c5e5a9fc32795fcc72c44'
  28.          '214119610444c9b02766ccee5e220680')
  29.  
  30. build() {
  31.   export CC="gcc -m32"
  32.   export CXX="g++ -m32"
  33.   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  34.  
  35.   cd ${srcdir}/freetype-${pkgver}
  36.  
  37.   # Patch from ubuntu
  38.   patch -Np1 -i $srcdir/freetype_$_ubver.diff
  39.  
  40.   sed -e "s/-p[0-9]\|.*otvalid\.patch//g" \
  41.       -i debian/patches-freetype/series
  42.  
  43.   sed -e 's/ src/ a\/src/g' \
  44.       -e '/^Index.*fbase.c/,/EOF/d' \
  45.       -i debian/patches-freetype/freetype-2.1.7-backwards.compat.patch
  46.  
  47.   for _f in $(cat debian/patches-freetype/series) ; do    
  48.     patch -Np1 -i debian/patches-freetype/$_f    
  49.   done
  50.  
  51.   # Patches from arch trunk
  52.   patch -Np1 -i "${srcdir}/freetype-2.2.1-enable-valid.patch"
  53.  
  54.   ./configure --prefix=/usr --libdir=/usr/lib32
  55.   make
  56. }
  57.  
  58. package() {
  59.   cd ${srcdir}/freetype-${pkgver}
  60.   make DESTDIR=${pkgdir} install
  61.   rm -rf $pkgdir/usr/{include,share,bin}
  62. }