From 108636e69eaeef67f4e7263c7f26105e25979e89 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Jun 2011 23:10:22 +0000 Subject: Tue Jun 28 23:10:22 UTC 2011 --- community/gtk2hs-cairo/PKGBUILD | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'community/gtk2hs-cairo') diff --git a/community/gtk2hs-cairo/PKGBUILD b/community/gtk2hs-cairo/PKGBUILD index 3f1afd76e..cb3fc256b 100644 --- a/community/gtk2hs-cairo/PKGBUILD +++ b/community/gtk2hs-cairo/PKGBUILD @@ -1,14 +1,15 @@ -# $Id: PKGBUILD 41273 2011-03-04 22:51:09Z remy $ +# $Id: PKGBUILD 50211 2011-06-26 20:14:36Z spupykin $ # Maintainer: Sergej Pupykin + _hkgname=cairo pkgname=gtk2hs-cairo pkgver=0.12.0 -pkgrel=3.1 +pkgrel=4 pkgdesc="Binding to the cairo library for Gtk2Hs." url="http://hackage.haskell.org/package/cairo" license=('LGPL2.1') arch=('i686' 'x86_64') -depends=('ghc=7.0.2' 'cairo' 'haskell-mtl=2.0.1.0') +depends=('ghc' 'cairo' 'haskell-mtl=2.0.1.0') makedepends=(gtk2hs-buildtools) options=('strip') install=${pkgname}.install @@ -28,6 +29,9 @@ build() { } package() { + _ghcver=`pacman -Q ghc | cut -f2 -d\ | cut -f1 -d-` + depends=("ghc=${_ghcver}" 'cairo' '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 -- cgit v1.2.3-54-g00ecf