[arch-commits] Commit in haskell-foundation/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Feb 25 17:38:17 UTC 2018
Date: Sunday, February 25, 2018 @ 17:38:15
Author: felixonmars
Revision: 297988
upgpkg: haskell-foundation 0.0.20-1
rebuild with basement,0.0.7 foundation,0.0.20
Modified:
haskell-foundation/trunk/PKGBUILD
----------+
PKGBUILD | 25 ++++++++++++++++++-------
1 file changed, 18 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-02-25 17:35:43 UTC (rev 297987)
+++ PKGBUILD 2018-02-25 17:38:15 UTC (rev 297988)
@@ -4,7 +4,7 @@
_hkgname=foundation
pkgname=haskell-foundation
-pkgver=0.0.19
+pkgver=0.0.20
pkgrel=1
pkgdesc="Alternative prelude with batteries and no dependencies"
url="https://github.com/haskell-foundation/foundation"
@@ -11,17 +11,23 @@
license=('custom:BSD3')
arch=('x86_64')
depends=('ghc-libs' 'haskell-basement')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-doctest')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('96f22455b1e4986093dfddd2bcb76885e069acd71f4998e3038ce179ecc80301aa35910fb54893aa158cc7056ee10c68c7022c203000a9a86ce9241bc57d8708')
+sha512sums=('283a0e2ce0165d531d17f0c0f14e72b843c67a809d5c7bde4280b23103b30d919c5ddf0cd09918129171ea79d34ad83abfcd3aac9e24d9803595d08cea6aba22')
+prepare() {
+ cd $_hkgname-$pkgver
+ # TODO: doctest still fails
+ sed -i 's/"-fobject-code"/"-fobject-code", "-dynamic"/' tests/DocTest.hs
+}
+
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 \
- -f-experimental -f-minimal-deps -f-doctest -f-bounds-check
+ -f-experimental -f-minimal-deps -f-doctest -flinktest -f-bounds-check
runhaskell Setup build
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
@@ -29,8 +35,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