diff options
author | root <root@rshg054.dnsready.net> | 2011-10-29 23:14:54 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-10-29 23:14:54 +0000 |
commit | 4fd31f219f19dfc2168702cef9421eaaccd9b3e6 (patch) | |
tree | 709f501e92b9474c343dce5189e76e0f60301d4b /staging/graphite | |
parent | 807f42c30ddb00c4e2d4034ce1720d7cb494e074 (diff) |
Sat Oct 29 23:14:54 UTC 2011
Diffstat (limited to 'staging/graphite')
-rw-r--r-- | staging/graphite/PKGBUILD | 39 | ||||
-rw-r--r-- | staging/graphite/pango-graphite.install | 12 |
2 files changed, 51 insertions, 0 deletions
diff --git a/staging/graphite/PKGBUILD b/staging/graphite/PKGBUILD new file mode 100644 index 000000000..12cab4e69 --- /dev/null +++ b/staging/graphite/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 141287 2011-10-28 05:35:50Z andyrtr $ +# Maintainer: AndyRTR <andyrtr@archlinux.org> + +pkgname=graphite +pkgver=1.0.3 +pkgrel=1 +epoch=1 +arch=('i686' 'x86_64') +url="http://graphite.sil.org/" +pkgdesc='reimplementation of the SIL Graphite text processing engine' +license=('custom_SIL Dual license') +depends=('gcc-libs') +makedepends=('cmake' 'freetype2') +options=('!libtool' '!emptydirs') +source=("http://downloads.sourceforge.net/project/silgraphite/graphite2/graphite2-${pkgver}.tgz") +md5sums=('3bf481ca95109b14435125c0dd1f2217') + +build() { + cd "${srcdir}" + mkdir build + cd build + cmake -G "Unix Makefiles" ../graphite2-${pkgver} \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +check() { + cd "${srcdir}"/build + ctest +} + +package() { + cd "${srcdir}"/build + make DESTDIR="$pkgdir/" install + + # licenses + mkdir -p "${pkgdir}"/usr/share/licenses/${pkgname} + install -m644 "${srcdir}"/graphite2-${pkgver}/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/ +} diff --git a/staging/graphite/pango-graphite.install b/staging/graphite/pango-graphite.install new file mode 100644 index 000000000..46bc44611 --- /dev/null +++ b/staging/graphite/pango-graphite.install @@ -0,0 +1,12 @@ +post_install() { + usr/bin/pango-querymodules >etc/pango/pango.modules +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + post_install $1 +} + |