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

Felix Yan felixonmars at gemini.archlinux.org
Sun Oct 24 21:11:11 UTC 2021


    Date: Sunday, October 24, 2021 @ 21:11:11
  Author: felixonmars
Revision: 1033239

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-lens-aeson/repos/community-staging-x86_64/
  haskell-lens-aeson/repos/community-staging-x86_64/PKGBUILD
    (from rev 1033238, haskell-lens-aeson/trunk/PKGBUILD)

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

Copied: haskell-lens-aeson/repos/community-staging-x86_64/PKGBUILD (from rev 1033238, haskell-lens-aeson/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-10-24 21:11:11 UTC (rev 1033239)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=lens-aeson
+pkgname=haskell-lens-aeson
+pkgver=1.1.2
+pkgrel=1
+pkgdesc="Law-abiding lenses for aeson"
+url="https://github.com/lens/lens-aeson/"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-lens' 'haskell-scientific'
+         'haskell-unordered-containers' 'haskell-vector')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('c78c89383a39a8dd4c5174e8d1993b0904537af9d018cda7f25a043f03e5e385c7b37215eebac52480af61fa4dd0547185e62a8f0704d5a5961ffb29a26e508e')
+
+build() {
+    cd $_hkgname-$pkgver
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \
+            -f-test-doctests
+    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
+}
+
+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