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

Felix Yan felixonmars at archlinux.org
Sun Jan 21 20:18:00 UTC 2018


    Date: Sunday, January 21, 2018 @ 20:17:59
  Author: felixonmars
Revision: 284759

upgpkg: haskell-th-orphans 0.13.5-1

rebuild with th-orphans,0.13.5

Modified:
  haskell-th-orphans/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-21 19:38:25 UTC (rev 284758)
+++ PKGBUILD	2018-01-21 20:17:59 UTC (rev 284759)
@@ -3,22 +3,23 @@
 
 _hkgname=th-orphans
 pkgname=haskell-th-orphans
-pkgver=0.13.4
-pkgrel=7
+pkgver=0.13.5
+pkgrel=1
 pkgdesc="Orphan instances for TH datatypes"
 url="https://github.com/ekmett/th-orphans/"
 license=('custom:BSD3')
 arch=('x86_64')
-depends=('ghc-libs' 'haskell-mtl' 'haskell-th-lift' 'haskell-th-lift-instances' 'haskell-th-reify-many')
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-mtl' 'haskell-th-lift' 'haskell-th-lift-instances'
+         'haskell-th-reify-many')
+makedepends=('ghc' 'haskell-hspec')
 source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
-sha512sums=('66707368ac9649802dec954b6c5867b380b275b407c1f2d8db79bcf178a212b8f5e50b8f9f73edb4a09619b3097f6663007f9f4aaf0f33d15102cf80fb883eb4')
+sha512sums=('896c32861a208e8388ef0239db6ecb8e6e20a11422bd37daf74ea16f38c4d864e4f9f0cee7a3946a30ca6fa7ffb00c160ccf8e6791ed2d388a749dd986c12d25')
 
 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
@@ -27,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