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

Felix Yan felixonmars at gemini.archlinux.org
Wed Apr 6 21:15:48 UTC 2022


    Date: Wednesday, April 6, 2022 @ 21:15:47
  Author: felixonmars
Revision: 1181986

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-lens-action/repos/community-staging-x86_64/PKGBUILD (from rev 1181985, haskell-lens-action/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-04-06 21:15:47 UTC (rev 1181986)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=lens-action
+pkgname=haskell-lens-action
+pkgver=0.2.6
+pkgrel=34
+pkgdesc="Monadic Getters and Folds"
+url="https://github.com/ekmett/lens-action"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-comonad' 'haskell-contravariant' 'haskell-lens'
+         'haskell-profunctors' 'haskell-semigroupoids')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('44f0639063db6ec80dd2cee274b0fe9135330ee12a007329d419cfe1522738169e0915b32250a340621d4084b4dd2c54a84465e24f4ebd943d6bda59b5d380da')
+
+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 "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}



More information about the arch-commits mailing list