[arch-commits] Commit in haskell-extra/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Dec 1 16:31:24 UTC 2017
Date: Friday, December 1, 2017 @ 16:31:23
Author: felixonmars
Revision: 271194
upgpkg: haskell-extra 1.6.1-1
rebuild with extra,1.6.1
Modified:
haskell-extra/trunk/PKGBUILD
----------+
PKGBUILD | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-01 16:25:21 UTC (rev 271193)
+++ PKGBUILD 2017-12-01 16:31:23 UTC (rev 271194)
@@ -4,22 +4,22 @@
_hkgname=extra
pkgname=haskell-extra
-pkgver=1.6
-pkgrel=3
+pkgver=1.6.1
+pkgrel=1
pkgdesc="Extra functions I use."
url="https://github.com/ndmitchell/extra#readme"
license=("custom:BSD3")
arch=('x86_64')
-depends=('ghc-libs' "haskell-clock")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-clock')
+makedepends=('ghc' 'haskell-quickcheck')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('3eb9d4b48715b15d16ab1deca5b1563d5078f611b53d2f53312843f07e93be4a97a3691b494bf4c06db65fa1721dd27f708aa8e23f26193b074d4b15e7d4b839')
+sha512sums=('1d7e2f464c4855325bbff8a02b264cee081562748427ee799053cc96dc0fd300d36f5292627c8f7de77dd376bae106304c89eb49039d0b056feee65fb0e8eb7e')
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
@@ -28,9 +28,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