[arch-commits] Commit in graphite/trunk (PKGBUILD)

andyrtr at archlinux.org andyrtr at archlinux.org
Fri Oct 28 01:35:17 EDT 2011


    Date: Friday, October 28, 2011 @ 01:35:17
  Author: andyrtr
Revision: 141286

upgpkg: graphite 1:1.0.3-1

move to graphite2 branch

Modified:
  graphite/trunk/PKGBUILD

----------+
 PKGBUILD |   47 ++++++++++++++++++++++-------------------------
 1 file changed, 22 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-10-28 04:36:42 UTC (rev 141285)
+++ PKGBUILD	2011-10-28 05:35:17 UTC (rev 141286)
@@ -1,42 +1,39 @@
 # $Id$
 # Maintainer: AndyRTR <andyrtr at 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}/
+  install -m644 "${srcdir}"/graphite2-${pkgver}/COPYING "${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
-}



More information about the arch-commits mailing list