[arch-commits] Commit in haskell-conduit-extra/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Dec 11 17:49:18 UTC 2017
Date: Monday, December 11, 2017 @ 17:49:17
Author: felixonmars
Revision: 273773
upgpkg: haskell-conduit-extra 1.2.1-1
rebuild with conduit-extra,1.2.1
Modified:
haskell-conduit-extra/trunk/PKGBUILD
----------+
PKGBUILD | 31 ++++++++++++++++++++-----------
1 file changed, 20 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-11 17:43:42 UTC (rev 273772)
+++ PKGBUILD 2017-12-11 17:49:17 UTC (rev 273773)
@@ -4,25 +4,29 @@
_hkgname=conduit-extra
pkgname=haskell-conduit-extra
-pkgver=1.2.0
-pkgrel=3
+pkgver=1.2.1
+pkgrel=1
pkgdesc="Batteries included conduit: adapters for common libraries."
url="https://github.com/snoyberg/conduit"
license=("MIT")
arch=('x86_64')
-depends=('ghc-libs' "haskell-async" "haskell-attoparsec" "haskell-blaze-builder" "haskell-conduit"
- "haskell-exceptions" "haskell-monad-control" "haskell-network" "haskell-primitive"
- "haskell-resourcet" "haskell-stm" "haskell-streaming-commons" "haskell-text"
- "haskell-transformers-base")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-async' 'haskell-attoparsec' 'haskell-blaze-builder' 'haskell-conduit'
+ 'haskell-exceptions' 'haskell-monad-control' 'haskell-network' 'haskell-primitive'
+ 'haskell-resourcet' 'haskell-stm' 'haskell-streaming-commons' 'haskell-text'
+ 'haskell-transformers-base' 'haskell-typed-process' 'haskell-unliftio-core')
+makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('494ab5e53f05dc6dfd0ed44506de5eae241b3fb20e9b431100c6090de0a3af552e204de5012130ae0486b0e175e03deac0303246dcbbee75385e171facc3363d')
+sha512sums=('21588302ef562ce88425502ce754517dafd131f3f33f37e6a74295c968c5fdb0ff32366abc95c47ed9be175e9b1b783b0230cbd43a7ea2bdf5b2c155f13c1c57')
+prepare() {
+ sed -i '/bytestring-builder/d' $_hkgname-$pkgver/$_hkgname.cabal
+}
+
build() {
cd "${srcdir}/${_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
@@ -31,9 +35,14 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
cd "${srcdir}/${_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"
runhaskell Setup copy --destdir="${pkgdir}"
More information about the arch-commits
mailing list