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

Daniel Griffiths dgriffiths at archlinux.org
Mon Apr 12 06:39:07 UTC 2010


    Date: Monday, April 12, 2010 @ 02:39:06
  Author: dgriffiths
Revision: 77362

Adopted, moved to splitpkg format

Modified:
  glib/trunk/PKGBUILD

----------+
 PKGBUILD |   35 ++++++++++++++++++++++-------------
 1 file changed, 22 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-04-12 06:17:20 UTC (rev 77361)
+++ PKGBUILD	2010-04-12 06:39:06 UTC (rev 77362)
@@ -1,6 +1,7 @@
 # $Id$
-# Maintainer: Eric Belanger <eric at archlinux.org>
+# Contributor: Eric Belanger <eric at archlinux.org>
 # Contributor: dorphell <dorphell at archlinux.org>
+# Maintainer: Daniel J Griffiths
 
 pkgname=glib
 pkgver=1.2.10
@@ -12,20 +13,28 @@
 depends=('glibc' 'texinfo')
 options=('!libtool')
 install=glib.install
-source=(ftp://ftp.gtk.org/pub/gtk/v1.2/${pkgname}-${pkgver}.tar.gz \
-	gcc340.patch aclocal-fixes.patch)
-md5sums=('6fe30dad87c77b91b632def29dd69ef9' '877b3330e822a4be69a0f8a8c268cfd7'\
+source=(ftp://ftp.gtk.org/pub/gtk/v1.2/${pkgname}-${pkgver}.tar.gz 
+	gcc340.patch 
+	aclocal-fixes.patch)
+md5sums=('6fe30dad87c77b91b632def29dd69ef9' 
+	 '877b3330e822a4be69a0f8a8c268cfd7'
          'e52c4b88427b9785bb8049dbdc9ff6fb')
-sha1sums=('e5a9361c594608d152d5d9650154c2e3260b87fa' 'a2cc224a66aeffdcac16ebd9e8af18143cf54918'\
-         'ae4438cf56c0c9264ee36f6973fb445f9a820be0')
+sha1sums=('e5a9361c594608d152d5d9650154c2e3260b87fa' 
+	  'a2cc224a66aeffdcac16ebd9e8af18143cf54918'
+          'ae4438cf56c0c9264ee36f6973fb445f9a820be0')
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  patch -Np1 -i ../gcc340.patch || return 1
-  patch -Np0 -i ../aclocal-fixes.patch || return 1
+	cd ${srcdir}/${pkgname}-${pkgver}
+	patch -Np1 -i ../gcc340.patch || return 1
+	patch -Np0 -i ../aclocal-fixes.patch || return 1
 
-  [ "$CARCH" = "x86_64" ] && CONFIGFLAG="--host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu"
-  ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info $CONFIGFLAG || return 1
-  make || return 1
-  make DESTDIR="${pkgdir}" install || return 1
+	[ "$CARCH" = 'x86_64' ] && CONFIGFLAG='--host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu'
+	./configure --prefix=/usr --mandir=/usr/share/man \
+	    --infodir=/usr/share/info $CONFIGFLAG || return 1
+	make || return 1
 }
+
+package() {
+	cd ${srcdir}/${pkgname}-${pkgver}
+	make DESTDIR=${pkgdir} install || return 1
+}




More information about the arch-commits mailing list