[arch-commits] Commit in haskell-primitive/trunk (PKGBUILD)

Sergej Pupykin spupykin at nymeria.archlinux.org
Thu Apr 25 10:11:21 UTC 2013


    Date: Thursday, April 25, 2013 @ 12:11:21
  Author: spupykin
Revision: 88971

Modified:
  haskell-primitive/trunk/PKGBUILD

----------+
 PKGBUILD |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-04-25 09:38:19 UTC (rev 88970)
+++ PKGBUILD	2013-04-25 10:11:21 UTC (rev 88971)
@@ -9,7 +9,7 @@
 license=("custom:BSD3")
 arch=('i686' 'x86_64')
 makedepends=()
-depends=("ghc=7.6.3-1")
+depends=("ghc")
 options=('strip')
 install="${pkgname}.install"
 source=("http://hackage.haskell.org/packages/archive/primitive/${pkgver}/primitive-${pkgver}.tar.gz")
@@ -28,6 +28,9 @@
 }
 
 package() {
+  _ghcver=`pacman -Q ghc | cut -f2 -d\  | cut -f1 -d-`
+  depends=("ghc=${_ghcver}")
+
   cd ${srcdir}/primitive-${pkgver}
   install -Dm744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
   install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh




More information about the arch-commits mailing list