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

freetype2-static-2.5.0.1-1_PKGBUILD

By: cmsigler on Sep 10th, 2013  |  syntax: None  |  size: 1.45 KB  |  views: 82  |  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. # $Id: PKGBUILD 188918 2013-06-25 14:14:01Z heftig $
  2. # Maintainer: Jan de Groot <jgc@archlinux.org>
  3.  
  4. pkgname=freetype2-static
  5. pkgver=2.5.0.1
  6. pkgrel=1
  7. pkgdesc="TrueType font rendering library"
  8. arch=(i686 x86_64)
  9. license=('GPL')
  10. url="http://freetype.sourceforge.net"
  11. depends=('zlib' 'bzip2' 'sh')
  12. provides=('freetype2')
  13. conflicts=('freetype2')
  14. options=('!libtool')
  15. source=(http://downloads.sourceforge.net/sourceforge/freetype/freetype-${pkgver}.tar.bz2
  16.         freetype-2.2.1-enable-valid.patch
  17.         freetype-2.3.0-enable-spr.patch
  18.         freetype-2.4.11-enable-sph.patch)
  19. md5sums=('c72e9010b1d986d556fc0b2b5fcbf31a'
  20.          '214119610444c9b02766ccee5e220680'
  21.          '816dc8619a6904a7385769433c0a8653'
  22.          '2422f8902224fedb46ae9eec08c8ceac')
  23.  
  24. prepare() {
  25.   cd "${srcdir}/freetype-${pkgver}"
  26.   patch -Np1 -i "${srcdir}/freetype-2.2.1-enable-valid.patch"
  27.   patch -Np1 -i "${srcdir}/freetype-2.3.0-enable-spr.patch"
  28.  
  29.   # Disabled for now due to resistance
  30.   # Kept here for easier rebuilds via ABS
  31.   # https://bugs.archlinux.org/task/35274
  32.   #patch -Np1 -i "${srcdir}/freetype-2.4.11-enable-sph.patch"
  33. }
  34.  
  35. build() {
  36.   cd "${srcdir}/freetype-${pkgver}"
  37.  
  38.   # PNG support is useless if FT_CONFIG_OPTION_USE_PNG is disabled
  39.   ./configure --prefix=/usr \
  40.     --without-png
  41.  
  42.   make
  43. }
  44.  
  45. check() {
  46.   cd "${srcdir}/freetype-${pkgver}"
  47.   make -k check
  48. }
  49.  
  50. package() {
  51.   cd "${srcdir}/freetype-${pkgver}"
  52.   make DESTDIR="${pkgdir}" install
  53. }