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

Felix Yan felixonmars at gemini.archlinux.org
Fri Jun 3 11:32:09 UTC 2022


    Date: Friday, June 3, 2022 @ 11:32:09
  Author: felixonmars
Revision: 1220205

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-cborg-json/repos/community-staging-x86_64/
  haskell-cborg-json/repos/community-staging-x86_64/PKGBUILD
    (from rev 1220204, haskell-cborg-json/trunk/PKGBUILD)

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

Copied: haskell-cborg-json/repos/community-staging-x86_64/PKGBUILD (from rev 1220204, haskell-cborg-json/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-06-03 11:32:09 UTC (rev 1220205)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=cborg-json
+pkgname=haskell-cborg-json
+pkgver=0.2.4.0
+pkgrel=3
+pkgdesc="A library for encoding JSON as CBOR"
+url="https://github.com/well-typed/cborg-json"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-aeson-pretty' 'haskell-cborg' 'haskell-scientific'
+         'haskell-unordered-containers' 'haskell-vector')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('ba69633dae13eb3242652755f8899d9ec7483aef1fa5c6ecae465df888392351b8815a13d67a61e16f0a24dd784502e67c369b2c18ba63c2901e87e670d030f2')
+
+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 --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.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE.txt
+}



More information about the arch-commits mailing list