summaryrefslogtreecommitdiff
path: root/extra/graphite/PKGBUILD
blob: 9442d5ee03eeffe033be2afbba890fa853e9f49e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $Id: PKGBUILD 137743 2011-09-10 14:59:36Z pierre $
# Maintainer: AndyRTR <andyrtr@archlinux.org>

pkgbase=graphite
pkgname=('libgraphite' 'pango-graphite')
pkgver=2.3.1
pkgrel=2
arch=('i686' 'x86_64')
url="http://graphite.sil.org/"
makedepends=('pango' 'gcc-libs')
options=('!libtool' '!emptydirs')
source=("http://downloads.sourceforge.net/project/silgraphite/silgraphite/${pkgver}/silgraphite-${pkgver}.tar.gz")
md5sums=('d35724900f6a4105550293686688bbb3')

build() {
  cd "${srcdir}/silgraphite-${pkgver}"
  ./configure --prefix=/usr --disable-static
  make
}

package_libgraphite() {
  pkgdesc='SILGraphite - a "smart font" rendering engine - the libs and headers'
  license=('custom_SIL Dual license')
  depends=('gcc-libs')

  cd "${srcdir}/silgraphite-${pkgver}"/engine
  make DESTDIR="$pkgdir/" install

  # licenses
  mkdir -p "${pkgdir}"/usr/share/licenses/${pkgname}
  install -m644 license/*.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
}

package_pango-graphite() {
  pkgdesc="SILGraphite support for pango"
  license=('LGPL')
  depends=('pango' 'libgraphite')
  install=pango-graphite.install
 
  cd "${srcdir}/silgraphite-${pkgver}"/wrappers/pangographite
  make DESTDIR="$pkgdir/" install
}