summaryrefslogtreecommitdiff
path: root/community/haskell-vector/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/haskell-vector/PKGBUILD')
-rw-r--r--community/haskell-vector/PKGBUILD10
1 files changed, 7 insertions, 3 deletions
diff --git a/community/haskell-vector/PKGBUILD b/community/haskell-vector/PKGBUILD
index bbd867873..b6fa033e1 100644
--- a/community/haskell-vector/PKGBUILD
+++ b/community/haskell-vector/PKGBUILD
@@ -1,15 +1,16 @@
-# $Id: PKGBUILD 89326 2013-04-28 16:52:52Z td123 $
+# $Id: PKGBUILD 100512 2013-11-05 10:55:55Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=haskell-vector
pkgver=0.10.0.1
-pkgrel=4
+pkgrel=5
pkgdesc="Efficient Arrays"
url="http://code.haskell.org/vector"
license=("custom:BSD3")
arch=('i686' 'x86_64')
makedepends=()
-depends=("ghc=7.6.3" "haskell-primitive")
+# deps adjusted to specific versions in package()
+depends=("ghc" "haskell-primitive")
options=('strip')
install="${pkgname}.install"
source=("http://hackage.haskell.org/packages/archive/vector/${pkgver}/vector-${pkgver}.tar.gz")
@@ -28,6 +29,9 @@ build() {
}
package() {
+ _ghcver=`pacman -Q ghc | cut -f2 -d\ | cut -f1 -d-`
+ depends=("ghc=${_ghcver}" "haskell-primitive")
+
cd ${srcdir}/vector-${pkgver}
install -Dm744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
install -Dm744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh