[arch-commits] Commit in haskell-trifecta/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Sat Dec 18 23:26:23 UTC 2021


    Date: Saturday, December 18, 2021 @ 23:26:22
  Author: felixonmars
Revision: 1077958

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-trifecta/repos/community-staging-x86_64/
  haskell-trifecta/repos/community-staging-x86_64/PKGBUILD
    (from rev 1077957, haskell-trifecta/trunk/PKGBUILD)

----------+
 PKGBUILD |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

Copied: haskell-trifecta/repos/community-staging-x86_64/PKGBUILD (from rev 1077957, haskell-trifecta/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-12-18 23:26:22 UTC (rev 1077958)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=trifecta
+pkgname=haskell-trifecta
+pkgver=2.1.2
+pkgrel=2
+pkgdesc="A modern parser combinator library with convenient diagnostics"
+url="https://github.com/ekmett/trifecta"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-ansi-terminal" "haskell-blaze-builder" "haskell-blaze-html"
+         "haskell-blaze-markup" "haskell-charset" "haskell-comonad" "haskell-fingertree"
+         "haskell-hashable" 'haskell-indexed-traversable' "haskell-lens" "haskell-parsers"
+         'haskell-prettyprinter' 'haskell-prettyprinter-ansi-terminal' "haskell-profunctors"
+         "haskell-reducers" "haskell-unordered-containers" "haskell-utf8-string")
+makedepends=('ghc' 'haskell-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('33ee39932235d1963b44ce54a59c1b5f193db9f590f30ba272f4e10965582c3602f822328b7e6e98f09ff4d3e14a8e324375353246f3ff0815070a7d94916c2e')
+
+build() {
+    cd $_hkgname-$pkgver
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm
+    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 --show-details=direct
+}
+
+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