[arch-commits] Commit in haskell-microlens-platform/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Feb 25 18:22:50 UTC 2020


    Date: Tuesday, February 25, 2020 @ 18:22:50
  Author: felixonmars
Revision: 581782

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-microlens-platform/repos/community-staging-x86_64/
  haskell-microlens-platform/repos/community-staging-x86_64/PKGBUILD
    (from rev 581781, haskell-microlens-platform/trunk/PKGBUILD)

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

Copied: haskell-microlens-platform/repos/community-staging-x86_64/PKGBUILD (from rev 581781, haskell-microlens-platform/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-02-25 18:22:50 UTC (rev 581782)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=microlens-platform
+pkgname=haskell-microlens-platform
+pkgver=0.4.1
+pkgrel=4
+pkgdesc="microlens + all batteries included (best for apps)"
+url="https://github.com/monadfix/microlens"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-hashable" "haskell-microlens" "haskell-microlens-ghc"
+         "haskell-microlens-mtl" "haskell-microlens-th"
+         "haskell-unordered-containers" "haskell-vector")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('17e72270286c00a48d0fb7ea045825921fe91cace1a70cb88113a39a2a576e02e4d5f2ceefd748fbd52c2cfb0edcac3fc342d282bf9d10da21e29b520e2eee3b')
+
+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
+    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
+}
+
+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