Advertisement
reversyn

Untitled

Sep 19th, 2012
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.92 KB | None | 0 0
  1. # $Id: PKGBUILD 166327 2012-09-06 13:53:52Z andyrtr $
  2. # Maintainer: Jan de Groot <jgc@archlinux.org>
  3.  
  4. pkgname=fontconfig
  5. pkgver=2.10.1
  6. pkgrel=2
  7. pkgdesc="A library for configuring and customizing font access"
  8. arch=(i686 x86_64)
  9. url="http://www.fontconfig.org/release/"
  10. license=('custom')
  11. depends=('expat' 'freetype2')
  12. options=('!libtool')
  13. install=fontconfig.install
  14. source=(http://www.fontconfig.org/release/$pkgname-$pkgver.tar.gz
  15.         http://cgit.freedesktop.org/fontconfig/patch/?id=2837c63876b9b1f27d74aad51d45fc18d48f4652
  16.         29-replace-bitmap-fonts.conf)
  17. md5sums=('c94e380eea42f2f23ca9537035ef1899'
  18. '9a0e8d0e7a12922b1f7079747be7a075'
  19. 'f6b67e8cc79197ed6abd4701911e83da')
  20.  
  21. build() {
  22.   cd "$srcdir/$pkgname-$pkgver"
  23.  
  24.   # remove the multiple entries in test patch
  25.   patch -p1 -R < ../\?id=2837c63876b9b1f27d74aad51d45fc18d48f4652
  26.  
  27.   # make sure there's no rpath trouble and sane .so versioning - FC and Gentoo do this as well
  28.   libtoolize -f
  29.   autoreconf -f
  30.  
  31.   ./configure --prefix=/usr \
  32.     --sysconfdir=/etc \
  33.     --with-templatedir=/etc/fonts/conf.avail \
  34.     --with-xmldir=/etc/fonts \
  35.     --localstatedir=/var \
  36.     --disable-static \
  37.     --with-default-fonts=/usr/share/fonts \
  38.     --with-add-fonts=/usr/share/fonts
  39.   make
  40. }
  41.  
  42. check() {
  43.   cd "$srcdir/$pkgname-$pkgver"
  44.   make -k check
  45. }
  46.  
  47. package() {
  48.   cd "$srcdir/$pkgname-$pkgver"
  49.   make DESTDIR="$pkgdir" install
  50.  
  51.   # not upstream, not in FC and not in Gentoo, this should probably go upstream
  52.   # meanwhile to satisfy pages like http://zipcon.net/~swhite/docs/computers/browsers/fonttest.html we bring it back
  53.   install -m644 "$srcdir/29-replace-bitmap-fonts.conf" "$pkgdir/etc/fonts/conf.avail"
  54.   pushd $pkgdir/etc/fonts/conf.d
  55.   ln -s /etc/fonts/conf.avail/29-replace-bitmap-fonts.conf .
  56.   popd
  57.  
  58.   #Install license
  59.   install -m755 -d "$pkgdir/usr/share/licenses/$pkgname"
  60.   install -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname"
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement