[arch-commits] Commit in haskell-xml-conduit/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Jan 5 02:42:36 UTC 2018
Date: Friday, January 5, 2018 @ 02:42:35
Author: felixonmars
Revision: 278761
upgpkg: haskell-xml-conduit 1.7.0.1-1
rebuild with xml-conduit,1.7.0.1
Modified:
haskell-xml-conduit/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++++++++++++++-----------
1 file changed, 16 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-05 02:33:17 UTC (rev 278760)
+++ PKGBUILD 2018-01-05 02:42:35 UTC (rev 278761)
@@ -4,25 +4,25 @@
_hkgname=xml-conduit
pkgname=haskell-xml-conduit
-pkgver=1.7.0
-pkgrel=7
+pkgver=1.7.0.1
+pkgrel=1
pkgdesc="Pure-Haskell utilities for dealing with XML with the conduit package."
url="https://github.com/snoyberg/xml"
license=("MIT")
arch=('x86_64')
-depends=('ghc-libs' "haskell-attoparsec" "haskell-blaze-builder" "haskell-text"
- "haskell-blaze-markup" "haskell-conduit" "haskell-conduit-extra"
- "haskell-data-default-class" "haskell-monad-control" "haskell-resourcet"
- "haskell-blaze-html" "haskell-xml-types")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-attoparsec' 'haskell-blaze-builder' 'haskell-text'
+ 'haskell-blaze-markup' 'haskell-conduit' 'haskell-conduit-extra'
+ 'haskell-data-default-class' 'haskell-monad-control' 'haskell-resourcet'
+ 'haskell-blaze-html' 'haskell-xml-types')
+makedepends=('ghc' 'haskell-hspec' 'haskell-hunit')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('083a4e2ee33256bc30fd634ac5b89a5ca03868854583c71c0cd723097e5388b104758edc005d0701dc5a85d54133dfa7dc1d59d95727a4f6b44d5fd78b50a88a')
+sha512sums=('9c2569721711bf7b60b9a3cf8998095d5da7dc758af034a78007800be1cb1356619080a90e7393c0c986c301425be68f9f4c537e2427935b0df2446ad63e0ebb')
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
@@ -31,8 +31,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