[arch-commits] Commit in haskell-data-accessor-transformers/repos (2 files)

Felix Yan felixonmars at archlinux.org
Wed Jun 16 23:47:50 UTC 2021


    Date: Wednesday, June 16, 2021 @ 23:47:50
  Author: felixonmars
Revision: 964423

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-data-accessor-transformers/repos/community-staging-x86_64/
  haskell-data-accessor-transformers/repos/community-staging-x86_64/PKGBUILD
    (from rev 964422, haskell-data-accessor-transformers/trunk/PKGBUILD)

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

Copied: haskell-data-accessor-transformers/repos/community-staging-x86_64/PKGBUILD (from rev 964422, haskell-data-accessor-transformers/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-06-16 23:47:50 UTC (rev 964423)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=data-accessor-transformers
+pkgname=haskell-data-accessor-transformers
+pkgver=0.2.1.7
+pkgrel=25
+pkgdesc="Use Accessor to access state in transformers State monad"
+url="https://www.haskell.org/haskellwiki/Record_access"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-data-accessor")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('c7ca31fee72c0a52446a9d54b6dd0976bf2af8e495d91a0fe76a29436830ee8a6c7e56418168f6698a7542f405ef6de75aaf067db6b44733bf5f3ec8e5e49f4e')
+
+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 $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