summaryrefslogtreecommitdiff
path: root/extra/glib/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/glib/PKGBUILD')
-rw-r--r--extra/glib/PKGBUILD43
1 files changed, 28 insertions, 15 deletions
diff --git a/extra/glib/PKGBUILD b/extra/glib/PKGBUILD
index 480a521e2..57be2dc1f 100644
--- a/extra/glib/PKGBUILD
+++ b/extra/glib/PKGBUILD
@@ -1,37 +1,50 @@
-# $Id: PKGBUILD 135061 2011-08-10 01:01:44Z eric $
+# $Id: PKGBUILD 191242 2013-07-22 06:31:51Z eric $
# Maintainer: Eric BĂ©langer <eric@archlinux.org>
pkgname=glib
pkgver=1.2.10
-pkgrel=9
+pkgrel=10
pkgdesc="Common C routines used by Gtk+ and other libs"
arch=('i686' 'x86_64')
url="http://www.gtk.org/"
license=('LGPL')
-depends=('glibc')
-options=('!libtool')
+depends=('glibc' 'sh')
+options=('!libtool' '!makeflags')
install=glib.install
-source=(ftp://ftp.gtk.org/pub/gtk/v1.2/${pkgname}-${pkgver}.tar.gz \
- gcc340.patch aclocal-fixes.patch)
-md5sums=('6fe30dad87c77b91b632def29dd69ef9'
- '877b3330e822a4be69a0f8a8c268cfd7'
- 'e52c4b88427b9785bb8049dbdc9ff6fb')
+source=(ftp://ftp.gtk.org/pub/gtk/v1.2/${pkgname}-${pkgver}.tar.gz
+ gcc340.patch aclocal-fixes.patch glib1-autotools.patch)
sha1sums=('e5a9361c594608d152d5d9650154c2e3260b87fa'
'a2cc224a66aeffdcac16ebd9e8af18143cf54918'
- 'ae4438cf56c0c9264ee36f6973fb445f9a820be0')
+ 'ae4438cf56c0c9264ee36f6973fb445f9a820be0'
+ '8a25fde3c79567262b3024f4e74c9ca4ee8a6279')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -Np1 -i "${srcdir}/gcc340.patch"
+ patch -Np0 -i "${srcdir}/aclocal-fixes.patch"
+ patch -Np1 -i "${srcdir}/glib1-autotools.patch"
+}
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- patch -Np1 -i ../gcc340.patch
- patch -Np0 -i ../aclocal-fixes.patch
+ cd ${pkgname}-${pkgver}
+ if [[ $CARCH = "i686" ]]; then
+ CONFIGFLAG='--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu'
+ elif [[ $CARCH = "x86_64" ]]; then
+ CONFIGFLAG='--host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu'
+ fi
- [ "$CARCH" = 'x86_64' ] && CONFIGFLAG='--host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu'
+ autoreconf --force --install
./configure --prefix=/usr --mandir=/usr/share/man \
--infodir=/usr/share/info $CONFIGFLAG
make
}
+check() {
+ cd ${pkgname}-${pkgver}
+ make check
+}
+
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
}