[arch-commits] Commit in haskell-shake/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Aug 6 05:38:35 UTC 2020
Date: Thursday, August 6, 2020 @ 05:38:34
Author: felixonmars
Revision: 670508
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-shake/repos/community-staging-x86_64/
haskell-shake/repos/community-staging-x86_64/PKGBUILD
(from rev 670507, haskell-shake/trunk/PKGBUILD)
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
Copied: haskell-shake/repos/community-staging-x86_64/PKGBUILD (from rev 670507, haskell-shake/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-08-06 05:38:34 UTC (rev 670508)
@@ -0,0 +1,60 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=shake
+pkgname=haskell-shake
+pkgver=0.19.1
+pkgrel=27
+pkgdesc="Build system library, like Make, but more accurate dependencies."
+url="https://shakebuild.com"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-extra' 'haskell-file-embed' 'haskell-filepattern' 'haskell-hashable'
+ 'haskell-heaps' 'haskell-js-dgtable' 'haskell-js-flot' 'haskell-js-jquery'
+ 'haskell-primitive' 'haskell-random' 'haskell-unordered-containers' 'haskell-utf8-string')
+makedepends=('ghc' 'haskell-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('dbc0e4e60b5c1e622538f4bdee011a4e2d67ea7dd7cead2cf56c1cb3490562858c0af58e920a0267ba1f3569af386a8a3c2aa0429bfb24ad3bca460975e714d9')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -i 's/ghc --make/ghc -dynamic --make/' src/Test/{Command.hs,CloseFileHandles.hs}
+ sed -e 's/ghc -package=Cabal/ghc -package=Cabal -dynamic/' \
+ -e 's/ghc -fno-code/ghc -dynamic -fno-code/' \
+ -e 's/"configure",/"configure","--enable-executable-dynamic","--disable-library-vanilla",/' \
+ -i src/Test/Docs.hs
+ sed -i 's/cmd "ghc" flags/cmd "ghc" "-dynamic" flags/' src/Test/Self.hs src/Test/SelfMake.hs
+ sed -i 's/ghc --make/ghc -dynamic --make/' docs/manual/build.sh
+
+ # Not sure about this one:
+ sed -i 's/at cmd, called at/at want, called at/' src/Test/Errors.hs
+}
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir="$pkgname" --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-portable -f-cloud -f-embed-files
+ runhaskell Setup build $MAKEFLAGS
+ runhaskell Setup register --gen-script
+ runhaskell Setup unregister --gen-script
+ sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
+package() {
+ 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
+ runhaskell Setup copy --destdir="$pkgdir"
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list