Date: Thursday, April 25, 2013 @ 15:16:14 Author: spupykin Revision: 89006
adjust versions in package() Modified: haskell-vector/trunk/PKGBUILD ----------+ PKGBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-04-25 12:52:08 UTC (rev 89005) +++ PKGBUILD 2013-04-25 13:16:14 UTC (rev 89006) @@ -9,7 +9,8 @@ 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 @@ } 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