summaryrefslogtreecommitdiff
path: root/community/haskell-glib
diff options
context:
space:
mode:
Diffstat (limited to 'community/haskell-glib')
-rw-r--r--community/haskell-glib/PKGBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/community/haskell-glib/PKGBUILD b/community/haskell-glib/PKGBUILD
index 4861e4134..dbc105339 100644
--- a/community/haskell-glib/PKGBUILD
+++ b/community/haskell-glib/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 110621 2014-05-04 13:55:00Z td123 $
+# $Id: PKGBUILD 115978 2014-07-19 16:05:05Z td123 $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=haskell-glib
pkgver=0.12.5.4
-pkgrel=1
+pkgrel=2
pkgdesc="Binding to the GLIB library for Gtk2Hs."
url="http://hackage.haskell.org/package/glib"
license=('LGPL2.1')
@@ -31,9 +31,17 @@ build() {
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+_update_deps() {
+ _ver=`pacman -Q $1 | cut -f2 -d\ | cut -f1 -d-`
+ for i in `seq 0 $(expr ${#depends[@]} - 1)`; do
+ if [ ${depends[$i]} == $1 ]; then
+ depends[$i]="$1=${_ver}"
+ fi
+ done
+}
+
package() {
- _ghcver=`pacman -Q ghc | cut -f2 -d\ | cut -f1 -d-`
- depends=("ghc=${_ghcver}" "glib2" 'haskell-utf8-string')
+ _update_deps ghc
cd ${srcdir}/glib-${pkgver}
install -D -m744 register.sh ${pkgdir}/usr/share/haskell/gtk2hs-glib/register.sh