[arch-commits] Commit in haskell-unliftio/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Jan 4 12:52:04 UTC 2018
Date: Thursday, January 4, 2018 @ 12:52:04
Author: felixonmars
Revision: 278643
upgpkg: haskell-unliftio 0.2.2.0-1
rebuild with unliftio,0.2.2.0
Modified:
haskell-unliftio/trunk/PKGBUILD
----------+
PKGBUILD | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-04 12:49:50 UTC (rev 278642)
+++ PKGBUILD 2018-01-04 12:52:04 UTC (rev 278643)
@@ -4,7 +4,7 @@
_hkgname=unliftio
pkgname=haskell-unliftio
-pkgver=0.2.1.0
+pkgver=0.2.2.0
pkgrel=1
pkgdesc="The MonadUnliftIO typeclass for unlifting monads to IO (batteries included)"
url="https://github.com/fpco/monad-unlift"
@@ -11,15 +11,15 @@
license=("MIT")
arch=('x86_64')
depends=('ghc-libs' 'haskell-async' 'haskell-stm' 'haskell-unliftio-core')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-hspec')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('02548a289d55005e4c46c99b6591b5d04c715f340eaaadb68de4e2584f0ba169c14f020368952435048cc7c15671963b0f52afeb28dc2abcb7d20756eade7d66')
+sha512sums=('8e0745ea9de19b723a41bc92159043400aed83fd7836607dfa0dee0311cee8f4bef7a161c271404d88a99f6cf39c4f251e532510409e8b469ba67288b8998909')
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