[arch-commits] Commit in haskell-pandoc-types/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Jan 22 08:14:45 UTC 2018
Date: Monday, January 22, 2018 @ 08:14:44
Author: felixonmars
Revision: 284878
upgpkg: haskell-pandoc-types 1.17.3.1-1
rebuild with pandoc-types,1.17.3.1
Modified:
haskell-pandoc-types/trunk/PKGBUILD
----------+
PKGBUILD | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-22 08:11:25 UTC (rev 284877)
+++ PKGBUILD 2018-01-22 08:14:44 UTC (rev 284878)
@@ -4,22 +4,23 @@
_hkgname=pandoc-types
pkgname=haskell-pandoc-types
-pkgver=1.17.3
-pkgrel=4
+pkgver=1.17.3.1
+pkgrel=1
pkgdesc="Types for representing a structured document"
url="http://johnmacfarlane.net/pandoc"
license=("custom:BSD3")
arch=('x86_64')
-depends=('ghc-libs' "haskell-aeson" "haskell-quickcheck" "haskell-syb")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-quickcheck' 'haskell-syb')
+makedepends=('ghc' 'haskell-test-framework' 'haskell-test-framework-hunit'
+ 'haskell-test-framework-quickcheck2' 'haskell-hunit' 'haskell-string-qq')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('7646ce51757b2abe2ca8de66316a1a268f72a3170270c524bbdd5fa8c97175036043ffbd1a4840b79b450d494f29dcc864670d76a9e551852728fc302613679a')
+sha512sums=('2eaf9f0f36d524422109ed5c4c1244e2381c13b3c923355fc99b5c8784a28706d231b74384f2b74c9957e0a711a9f180339d0776d4a9b814435fab5b68f450f2')
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 +29,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