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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 9 10:48:43 UTC 2021


    Date: Tuesday, November 9, 2021 @ 10:48:43
  Author: felixonmars
Revision: 1039245

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-transformers-compat/repos/community-staging-x86_64/
  haskell-transformers-compat/repos/community-staging-x86_64/PKGBUILD
    (from rev 1039244, haskell-transformers-compat/trunk/PKGBUILD)

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

Copied: haskell-transformers-compat/repos/community-staging-x86_64/PKGBUILD (from rev 1039244, haskell-transformers-compat/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-09 10:48:43 UTC (rev 1039245)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: William J. Bowman <aur at williamjbowman.com>
+# Contributer: Leif Warner <abimelech at gmail.com>
+
+_hkgname=transformers-compat
+pkgname=haskell-transformers-compat
+pkgver=0.7.1
+pkgrel=1
+pkgdesc="A small compatibility shim exposing the new types from transformers 0.3 to older Haskell platforms."
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('5d6dc222a9168dbfbcf1fa4ae0949494d54ee56274c1dc0be589aea54369fd64a30495dc5947fe8478800fd00dd1cb80339d855ab9b1b976c36e2b97bea21763')
+
+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 --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
+}
+
+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