Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Nov 30th, 2010  |  syntax: None  |  size: 1.86 KB  |  hits: 38  |  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. # Contributor: JIN Xiao-Yong <jinxiaoyong@gmail.com>
  2.  
  3. ## Change the following value to "y" if you're using a US locale:
  4. _I_USE_DOT_DELIMITERS="n"
  5.  
  6. pkgname=freetype2-infinality
  7. pkgver=2.4.3
  8. pkgrel=7
  9. pkgdesc="TrueType font rendering library with infinality patch"
  10. arch=(i686 x86_64)
  11. license=('GPL')
  12. url="http://freetype.sourceforge.net"
  13. depends=('zlib')
  14. conflicts=('freetype2')
  15. provides=("freetype2=$pkgver")
  16. options=('!libtool')
  17. source=(http://downloads.sourceforge.net/sourceforge/freetype/freetype-${pkgver}.tar.bz2
  18.         http://www.infinality.net/files/infinality-settings
  19.         http://www.infinality.net/files/freetype-filter-envvar-fix-20101117-1.patch
  20.         freetype-2.2.1-enable-valid.patch
  21.         http://www.infinality.net/files/freetype-add-subpixel-hinting-infinality-20101114-1.patch
  22.         http://www.infinality.net/files/freetype-enable-subpixel-hinting-infinality-20100909-1.patch
  23.         http://www.infinality.net/files/freetype-entire-infinality-patchset-20101114-1.patch)
  24.  
  25. build() {
  26.   cd "${srcdir}/freetype-${pkgver}"
  27.   local patch_file
  28.   for patch_file in "${source[@]:3}"; do
  29.       patch -Np1 -i "${srcdir}/${patch_file##*/}"
  30.   done
  31.  
  32.   # Apply fix for non-US locales
  33.   if [ "$_I_USE_DOT_DELIMITERS" = "n" ]; then
  34.       patch -Np1 -i "${srcdir}/freetype-filter-envvar-fix-20101117-1.patch"
  35.   fi
  36.  
  37.   ./configure --prefix=/usr
  38.   make
  39. }
  40.  
  41. package() {
  42.   cd "${srcdir}/freetype-${pkgver}"
  43.  
  44.   make DESTDIR="${pkgdir}" install
  45.   install -D -T "${srcdir}/infinality-settings" "${pkgdir}/etc/profile.d/infinality-settings.sh"
  46. }
  47.  
  48. md5sums=('75ac7082bde7b3805dc5d6bc806fa045'
  49.          'd006394c6e3325cc4d9196024a123a80'
  50.          '93b176239447f2623d76439a08d598da'
  51.          '214119610444c9b02766ccee5e220680'
  52.          '799a2d229c2997a5bb2d5b7c9f92fdba'
  53.          'a88b1a66da44a90c1fdcdeaa39a2dc09'
  54.          '6725774b17820f5413cb6a3cf7547f53')