diff options
Diffstat (limited to 'community/gtk2hs-cairo/PKGBUILD')
-rw-r--r-- | community/gtk2hs-cairo/PKGBUILD | 10 |
1 files changed, 7 insertions, 3 deletions
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 <pupykin.s+arch@gmail.com> + _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 |