Date: Saturday, June 4, 2022 @ 19:10:55
  Author: felixonmars
Revision: 1222052

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 1222051, haskell-lens-action/trunk/PKGBUILD)

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

Copied: haskell-lens-action/repos/community-staging-x86_64/PKGBUILD (from rev 
1222051, haskell-lens-action/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-06-04 19:10:55 UTC (rev 1222052)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+_hkgname=lens-action
+pkgname=haskell-lens-action
+pkgver=0.2.6
+pkgrel=53
+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
+}

Reply via email to