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

Felix Yan felixonmars at gemini.archlinux.org
Thu Jul 22 06:43:46 UTC 2021


    Date: Thursday, July 22, 2021 @ 06:43:46
  Author: felixonmars
Revision: 982934

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-gi/repos/community-staging-x86_64/
  haskell-gi/repos/community-staging-x86_64/PKGBUILD
    (from rev 982933, haskell-gi/trunk/PKGBUILD)

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

Copied: haskell-gi/repos/community-staging-x86_64/PKGBUILD (from rev 982933, haskell-gi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-07-22 06:43:46 UTC (rev 982934)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=haskell-gi
+pkgname=haskell-gi
+pkgver=0.25.0
+pkgrel=29
+pkgdesc="Generate Haskell bindings for GObject Introspection capable libraries"
+url="https://github.com/haskell-gi/haskell-gi"
+license=("LGPL2")
+arch=('x86_64')
+depends=('ghc-libs' 'glib2' 'gobject-introspection-runtime' 'haskell-gi-base'
+         'haskell-ansi-terminal' 'haskell-attoparsec' 'haskell-pretty-show' 'haskell-safe'
+         'haskell-xdg-basedir' 'haskell-xml-conduit' 'haskell-regex-tdfa')
+makedepends=('ghc' 'gobject-introspection' 'haskell-cabal-doctest' 'haskell-doctest')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('6e2f79ea2a06e02e2a3ed87f039c75857034061ca094e3b739f4de3b60530489f1e9c0f453d08c2a6d43a05a6912741895b3e3d57bf0fca1f02a9c03836492ca')
+
+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 $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"
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}




More information about the arch-commits mailing list