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

Felix Yan felixonmars at archlinux.org
Wed May 30 14:46:29 UTC 2018


    Date: Wednesday, May 30, 2018 @ 14:46:29
  Author: felixonmars
Revision: 333373

upgpkg: haskell-temporary 1.3-1

rebuild with temporary 1.3

Modified:
  haskell-temporary/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-30 14:45:29 UTC (rev 333372)
+++ PKGBUILD	2018-05-30 14:46:29 UTC (rev 333373)
@@ -4,22 +4,22 @@
 
 _hkgname=temporary
 pkgname=haskell-temporary
-pkgver=1.2.1.1
-pkgrel=9
+pkgver=1.3
+pkgrel=1
 pkgdesc="Portable temporary file and directory support"
 url="http://www.github.com/batterseapower/temporary"
 license=("custom:BSD3")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-exceptions")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-exceptions' 'haskell-random')
+makedepends=('ghc' 'haskell-base-compat' 'haskell-tasty' 'haskell-tasty-hunit')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('f7604d641057887e9f6285ae04a0da8bc3aa5e8adff3ab2a1c56a099f8aba1ad0d62734ffbfeb698046bd433aab161d3861f6822bc3cc2f620ef945e0b2d28f2')
+sha512sums=('e3078caf54da95c4efa9e9c936b35a98b62296ecce2242cd4e103605a9d29e8a9d6c7027dbf50d02b6a893bea558ea5b07dbb1df7c59bf26d86db76ccf112f25')
 
 build() {
-    cd "${srcdir}/${_hkgname}-${pkgver}"
+    cd $_hkgname-$pkgver
     
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
-        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
     runhaskell Setup build
     runhaskell Setup register --gen-script
@@ -28,8 +28,13 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
 package() {
-    cd "${srcdir}/${_hkgname}-${pkgver}"
+    cd $_hkgname-$pkgver
     
     install -D -m744 register.sh   "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
     install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"



More information about the arch-commits mailing list