[arch-commits] Commit in haskell-exceptions/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon May 28 06:40:09 UTC 2018
Date: Monday, May 28, 2018 @ 06:40:08
Author: felixonmars
Revision: 332187
upgpkg: haskell-exceptions 0.10.0-1
rebuild with exceptions 0.10.0
Modified:
haskell-exceptions/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-05-28 06:39:32 UTC (rev 332186)
+++ PKGBUILD 2018-05-28 06:40:08 UTC (rev 332187)
@@ -4,26 +4,23 @@
_hkgname=exceptions
pkgname=haskell-exceptions
-pkgver=0.8.3
-pkgrel=9
+pkgver=0.10.0
+pkgrel=1
pkgdesc="Extensible optionally-pure exceptions"
url="https://github.com/ekmett/exceptions/"
license=("custom:BSD3")
arch=('x86_64')
-depends=('ghc-libs' "haskell-transformers-compat")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-transformers-compat')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-test-framework' 'haskell-test-framework-hunit'
+ 'haskell-test-framework-quickcheck2')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('1b650d979e27c3307a7b58ea09fe19bfd97a35fb75aa526237cfe4fe68c99560794dc8985b601da1fc6cefb8358c76f60df822b709c621172785343233cee89a')
+sha512sums=('53fd0929bc73c7024842aee880d5f6c7e884926e0d6f667a63d12ea457451d8a3aaa44755ace2dac3258be127189ae0eeb299b6c974ebafd4fa33b5c8622fabd')
-prepare() {
- sed -i -e 's/<.*2.12/<3/' -e 's/<.*0.6/<1/' $_hkgname-$pkgver/$_hkgname.cabal
-}
-
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
@@ -32,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