[arch-commits] Commit in haskell-text/trunk (PKGBUILD)
Sergej Pupykin
spupykin at archlinux.org
Mon Mar 30 10:56:27 UTC 2015
Date: Monday, March 30, 2015 @ 12:56:27
Author: spupykin
Revision: 130248
upgpkg: haskell-text 1.2.0.4-2
upd
Modified:
haskell-text/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-03-30 10:56:23 UTC (rev 130247)
+++ PKGBUILD 2015-03-30 10:56:27 UTC (rev 130248)
@@ -3,13 +3,13 @@
_hkgname=text
pkgname=haskell-text
pkgver=1.2.0.4
-pkgrel=1
+pkgrel=2
pkgdesc="An efficient packed Unicode text type."
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
arch=('i686' 'x86_64')
options=('staticlibs')
-depends=('ghc=7.8.4' 'sh')
+depends=('ghc' 'sh')
source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
install=${pkgname}.install
md5sums=('77a8e63bb883317f8f2c15e64e8a7ff5')
@@ -33,7 +33,18 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+_update_deps() {
+ _ver=`pacman -Q $1 | cut -f2 -d\ | cut -f1 -d-`
+ for i in `seq 0 $(expr ${#depends[@]} - 1)`; do
+ if [ ${depends[$i]} == $1 ]; then
+ depends[$i]="$1=${_ver}"
+ fi
+ done
+}
+
package() {
+ _update_deps ghc
+
cd ${_hkgname}-${pkgver}
install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
@@ -47,4 +58,3 @@
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
}
-
More information about the arch-commits
mailing list