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

Felix Yan felixonmars at archlinux.org
Wed Jan 22 08:43:30 UTC 2020


    Date: Wednesday, January 22, 2020 @ 08:43:30
  Author: felixonmars
Revision: 553419

archrelease: copy trunk to community-x86_64

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

----------+
 PKGBUILD |   97 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 48 insertions(+), 49 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-22 08:43:09 UTC (rev 553418)
+++ PKGBUILD	2020-01-22 08:43:30 UTC (rev 553419)
@@ -1,49 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-_hkgname=rio
-pkgname=haskell-rio
-pkgver=0.1.12.0
-pkgrel=8
-pkgdesc="A standard library for Haskell"
-url="https://github.com/commercialhaskell/rio"
-license=('MIT')
-arch=('x86_64')
-depends=('ghc-libs' 'haskell-exceptions' 'haskell-hashable' 'haskell-microlens'
-         'haskell-primitive' 'haskell-typed-process' 'haskell-unliftio' 'haskell-unliftio-core'
-         'haskell-unordered-containers' 'haskell-vector')
-makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck')
-source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
-sha512sums=('ee168bb16080500ecc71bff42a74ebc2a16ac76985ec1a9ac2503680be5cc4dc9d265fd37f443781fb918f8c4c6bc87d0497dfec1d076a805a2ed7886ee9501a')
-
-prepare() {
-    cd $_hkgname-$pkgver
-    echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs
-}
-
-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
-    runhaskell Setup build
-    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
-}
-
-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"
-}

Copied: haskell-lens-action/repos/community-x86_64/PKGBUILD (from rev 553418, haskell-lens-action/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-01-22 08:43:30 UTC (rev 553419)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=lens-action
+pkgname=haskell-lens-action
+pkgver=0.2.4
+pkgrel=1
+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' 'haskell-cabal-doctest' 'haskell-doctest')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('9fde7be03c4cc289e19cee5dd5695c247a71c2585f8e085033e862b158ddc062a138f500b7dd71e3eb9f51869759b83fb0f88309db53f24300aaa0076322b883')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i '/semigroups/d' $_hkgname.cabal
+}
+
+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
+    runhaskell Setup build
+    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
+}
+
+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