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

Freetype 2 GIT Infinality patchset latest PKGBUILD

By: Case_ on Jun 9th, 2011  |  syntax: None  |  size: 1.80 KB  |  views: 311  |  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. pkgname=freetype2-infinality-git
  2. pkgver=20110610
  3. pkgrel=1
  4. pkgdesc="TrueType font rendering library with infinality patch; git version"
  5. arch=(i686 x86_64)
  6. license=('GPL')
  7. url="http://freetype.sourceforge.net"
  8. depends=('zlib')
  9. conflicts=('freetype2')
  10. provides=("freetype2=$pkgver")
  11. options=('!libtool')
  12. source=(http://www.infinality.net/files/infinality-settings.sh
  13.         http://www.infinality.net/files/freetype-add-subpixel-hinting-infinality-20110604-1.patch
  14.         http://www.infinality.net/files/freetype-enable-subpixel-hinting-infinality-20100909-1.patch
  15.         http://www.infinality.net/files/freetype-entire-infinality-patchset-20110604-1.patch
  16.         http://aoliynik-overlay.googlecode.com/svn-history/r361/trunk/media-libs/freetype/files/freetype-2.3.2-enable-valid.patch)
  17. md5sums=('75b5be731bdeb3616aacdbf328c3b414'
  18.          'ded8954240034a1e6ab2b2115b3ddb8f'
  19.          'a88b1a66da44a90c1fdcdeaa39a2dc09'
  20.          'c3428e393be31d8e4089452135b1ae46'
  21.          '90217c5567fba0617d2bec4003aeadd9')
  22.  
  23. _gitroot='git://git.sv.nongnu.org/freetype/freetype2.git'
  24. _gitname='freetype2'
  25.  
  26. build() {
  27.   cd "${srcdir}"
  28.  
  29.   if [[ -d "${_gitname}" ]]; then
  30.     cd "${_gitname}"
  31.     git pull
  32.   else
  33.     git clone "${_gitroot}" "${_gitname}" && cd "${_gitname}"
  34.   fi
  35.  
  36.   patch -Np1 -i "${srcdir}/freetype-add-subpixel-hinting-infinality-20110604-1.patch"
  37.   patch -Np1 -i "${srcdir}/freetype-enable-subpixel-hinting-infinality-20100909-1.patch"
  38.   patch -Np1 -i "${srcdir}/freetype-entire-infinality-patchset-20110604-1.patch"
  39.   patch -Np1 -i "${srcdir}/freetype-2.3.2-enable-valid.patch"
  40.  
  41.   sh ./autogen.sh
  42.   ./configure --prefix=/usr
  43.   make
  44. }
  45.  
  46. package() {
  47.   cd "${srcdir}/${_gitname}"
  48.  
  49.   make DESTDIR="${pkgdir}" install
  50.   install -D -T "${srcdir}/infinality-settings.sh" "${pkgdir}/etc/profile.d/infinality-settings.sh"
  51. }