Advertisement
Guest User

fontconfig-ubuntu

a guest
Feb 2nd, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. # Maintainer: Joris Steyn <jorissteyn@gmail.com>
  2. # Contributor: Florian Dejonckheere <florian@floriandejonckheere.be>
  3. # Contributor: Tevin Zhang <mail2tevin {at} gmail {dot} com>
  4. # Contributor: Andrea Fagiani <andfagiani {at} gmail {dot} com>
  5. # Contributor: Biru Ionut <biru.ionut at gmail.com>
  6. # Contributor: Paul Bredbury <brebs@sent.com>
  7.  
  8. # Installation order: freetype2-ubuntu fontconfig-ubuntu cairo-ubuntu
  9. pkgname=fontconfig-ubuntu
  10. pkgver=2.11.0
  11. _ubver=2.11.0-0ubuntu4.debian
  12. pkgrel=2
  13. pkgdesc="A library for configuring and customizing font access, with Ubuntu's LCD rendering patches."
  14. arch=('i686' 'x86_64')
  15. url="https://launchpad.net/ubuntu/+source/fontconfig"
  16. license=('custom')
  17. depends=('expat' 'freetype2-ubuntu')
  18. conflicts=('fontconfig')
  19. provides=("fontconfig=$pkgver")
  20. options=('!libtool')
  21. install=fontconfig.install
  22. source=(https://launchpad.net/ubuntu/+archive/primary/+files/fontconfig_$pkgver.orig.tar.bz2
  23. https://launchpad.net/ubuntu/+archive/primary/+files/fontconfig_$_ubver.tar.gz
  24. 53-monospace-lcd-filter.patch)
  25. md5sums=('000bd4baf7aefa828e03414d0c8c7dc5'
  26. '50682ac34c77af146b97c2bcc01c3ffb'
  27. 'a17e48be6a06bc056574be6756cb9738')
  28.  
  29. prepare() {
  30. cd "${srcdir}"/fontconfig-${pkgver}
  31.  
  32. for _f in $(cat ../debian/patches/series) ; do
  33. patch -Np1 -i "../debian/patches/$_f"
  34. done
  35.  
  36. patch -u "conf.d/53-monospace-lcd-filter.conf" "${srcdir}/53-monospace-lcd-filter.patch"
  37. }
  38.  
  39. build() {
  40. cd "${srcdir}"/fontconfig-${pkgver}
  41. # make sure there's no rpath trouble and sane .so versioning - FC and Gentoo do this as well
  42. libtoolize -f
  43. autoreconf -fi
  44.  
  45. # Enable Position Independent Code for prelinking
  46. export CFLAGS="$CFLAGS -fPIC"
  47. ./configure --prefix=/usr \
  48. --sysconfdir=/etc \
  49. --with-templatedir=/etc/fonts/conf.avail \
  50. --with-xmldir=/etc/fonts \
  51. --localstatedir=/var \
  52. --disable-static \
  53. --with-default-fonts=/usr/share/fonts \
  54. --with-add-fonts=/usr/share/fonts
  55. make
  56. }
  57.  
  58. package() {
  59. cd "${srcdir}"/fontconfig-${pkgver}
  60. make DESTDIR="${pkgdir}" install
  61.  
  62. # License
  63. install -Dm0644 COPYING "${pkgdir}"/usr/share/licenses/"${pkgname}"/COPYING
  64.  
  65. # Docs
  66. install -Dm0644 "${srcdir}"/debian/changelog "${pkgdir}"/usr/share/doc/fontconfig/changelog
  67. }
  68.  
  69. check() {
  70. cd "$srcdir/fontconfig-$pkgver"
  71.  
  72. # check doesn't work on arch with 2.10.2
  73. # uncomment this when fontconfig >2.10.93 arrives.
  74. make -k check
  75. }
  76.  
  77. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement