summaryrefslogtreecommitdiff
path: root/extra/graphite/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/graphite/PKGBUILD')
-rw-r--r--extra/graphite/PKGBUILD49
1 files changed, 23 insertions, 26 deletions
diff --git a/extra/graphite/PKGBUILD b/extra/graphite/PKGBUILD
index 9442d5ee0..21b6ae5eb 100644
--- a/extra/graphite/PKGBUILD
+++ b/extra/graphite/PKGBUILD
@@ -1,42 +1,39 @@
-# $Id: PKGBUILD 137743 2011-09-10 14:59:36Z pierre $
+# $Id: PKGBUILD 142675 2011-11-12 18:27:50Z ibiru $
# Maintainer: AndyRTR <andyrtr@archlinux.org>
-pkgbase=graphite
-pkgname=('libgraphite' 'pango-graphite')
-pkgver=2.3.1
-pkgrel=2
+pkgname=graphite
+pkgver=1.0.3
+pkgrel=1
+epoch=1
arch=('i686' 'x86_64')
url="http://graphite.sil.org/"
-makedepends=('pango' 'gcc-libs')
+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/silgraphite/${pkgver}/silgraphite-${pkgver}.tar.gz")
-md5sums=('d35724900f6a4105550293686688bbb3')
+source=("http://downloads.sourceforge.net/project/silgraphite/graphite2/graphite2-${pkgver}.tgz")
+md5sums=('3bf481ca95109b14435125c0dd1f2217')
build() {
- cd "${srcdir}/silgraphite-${pkgver}"
- ./configure --prefix=/usr --disable-static
+ cd "${srcdir}"
+ mkdir build
+ cd build
+ cmake -G "Unix Makefiles" ../graphite2-${pkgver} \
+ -DCMAKE_INSTALL_PREFIX=/usr
make
}
-package_libgraphite() {
- pkgdesc='SILGraphite - a "smart font" rendering engine - the libs and headers'
- license=('custom_SIL Dual license')
- depends=('gcc-libs')
+check() {
+ cd "${srcdir}"/build
+ ctest
+}
- cd "${srcdir}/silgraphite-${pkgver}"/engine
+package() {
+ cd "${srcdir}"/build
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
+ install -m644 "${srcdir}"/graphite2-${pkgver}/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/
}