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

Ionut Biru ibiru at archlinux.org
Thu Feb 23 07:59:50 EST 2012


    Date: Thursday, February 23, 2012 @ 07:59:49
  Author: ibiru
Revision: 150856

rebuild for signing

Modified:
  fontconfig/trunk/PKGBUILD

----------+
 PKGBUILD |   32 ++++++++++++++++++--------------
 1 file changed, 18 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-23 12:59:29 UTC (rev 150855)
+++ PKGBUILD	2012-02-23 12:59:49 UTC (rev 150856)
@@ -2,15 +2,15 @@
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 pkgname=fontconfig
 pkgver=2.8.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A library for configuring and customizing font access"
 arch=(i686 x86_64)
 url="http://www.fontconfig.org/release/"
 license=('custom')
-depends=('expat>=2.0.1' 'freetype2>=2.3.11')
+depends=('expat' 'freetype2')
 options=('!libtool')
 install=fontconfig.install
-source=(http://www.fontconfig.org/release/${pkgname}-${pkgver}.tar.gz
+source=(http://www.fontconfig.org/release/$pkgname-$pkgver.tar.gz
         29-replace-bitmap-fonts.conf
         30-urw-aliases.patch)
 md5sums=('77e15a92006ddc2adbb06f840d591c0e'
@@ -18,18 +18,22 @@
          '51bc6cb633b50f3c28793361738aac5b')
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  patch -Np1 -i "${srcdir}/30-urw-aliases.patch" || return 1
+  cd "$srcdir/$pkgname-$pkgver"
+  patch -Np1 -i "$srcdir/30-urw-aliases.patch"
   # enable Position Independent Code for prelinking
-  export CFLAGS="${CFLAGS} -fPIC"
-  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var || return 1
-  make || return 1
-  make DESTDIR="${pkgdir}" install || return 1
-  install -m644 "${srcdir}/29-replace-bitmap-fonts.conf" \
-      "${pkgdir}/etc/fonts/conf.avail" || return 1
-  rm -f ${pkgdir}/etc/fonts/conf.d/*.conf
+  export CFLAGS="$CFLAGS -fPIC"
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+  make
+}
 
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+  install -m644 "$srcdir/29-replace-bitmap-fonts.conf" \
+      "$pkgdir/etc/fonts/conf.avail"
+  rm -f "$pkgdir"/etc/fonts/conf.d/*.conf
+
   #Install license
-  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
+  install -m755 -d "$pkgdir/usr/share/licenses/$pkgname"
+  install -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname"
 }



More information about the arch-commits mailing list