summaryrefslogtreecommitdiff
path: root/community/gtk2hs-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'community/gtk2hs-gtk')
-rw-r--r--community/gtk2hs-gtk/PKGBUILD10
1 files changed, 7 insertions, 3 deletions
diff --git a/community/gtk2hs-gtk/PKGBUILD b/community/gtk2hs-gtk/PKGBUILD
index a647ac0db..0ce59b9b6 100644
--- a/community/gtk2hs-gtk/PKGBUILD
+++ b/community/gtk2hs-gtk/PKGBUILD
@@ -1,14 +1,15 @@
-# $Id: PKGBUILD 41300 2011-03-05 00:05:06Z remy $
+# $Id: PKGBUILD 50218 2011-06-26 20:25:06Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
_hkgname=gtk
pkgname=gtk2hs-gtk
pkgver=0.12.0
-pkgrel=3.1
+pkgrel=4
pkgdesc="Binding to the gtk library for Gtk2Hs."
url="http://hackage.haskell.org/package/gtk"
license=('LGPL2.1')
arch=('i686' 'x86_64')
-depends=('ghc=7.0.2' 'gtk2' 'gtk2hs-pango=0.12.0' 'haskell-mtl=2.0.1.0')
+depends=('ghc' 'gtk2' 'gtk2hs-pango=0.12.0' 'haskell-mtl=2.0.1.0')
makedepends=('gtk2hs-buildtools=0.12.0')
options=('strip')
install=gtk2hs-gtk.install
@@ -28,6 +29,9 @@ build() {
}
package() {
+ _ghcver=`pacman -Q ghc | cut -f2 -d\ | cut -f1 -d-`
+ depends=("ghc=${_ghcver}" 'gtk2' 'gtk2hs-pango=0.12.0' 'haskell-mtl=2.0.1.0')
+
cd ${srcdir}/${_hkgname}-${pkgver}
install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh