[arch-commits] Commit in haskell-network-protocol-xmpp/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Feb 21 16:12:05 UTC 2020


    Date: Friday, February 21, 2020 @ 16:12:05
  Author: felixonmars
Revision: 577710

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-network-protocol-xmpp/repos/community-staging-x86_64/
  haskell-network-protocol-xmpp/repos/community-staging-x86_64/PKGBUILD
    (from rev 577709, haskell-network-protocol-xmpp/trunk/PKGBUILD)

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

Copied: haskell-network-protocol-xmpp/repos/community-staging-x86_64/PKGBUILD (from rev 577709, haskell-network-protocol-xmpp/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-02-21 16:12:05 UTC (rev 577710)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=network-protocol-xmpp
+pkgname=haskell-network-protocol-xmpp
+pkgver=0.4.9
+pkgrel=4
+pkgdesc="Client library for the XMPP protocol."
+url="https://git.sr.ht/~singpolyma/network-protocol-xmpp"
+license=("GPL3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-gnuidn" "haskell-gnutls" "haskell-gsasl" "haskell-libxml-sax"
+         "haskell-monads-tf" "haskell-network" "haskell-xml-types")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('51c97677a4e56b016c23287076ee75a6ca023b9d4e073aae2d9b406e2f3aaa5147194d0f08e3673562df6b965b686b115577da9ce92a94892c515a6032989c86')
+
+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"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYING"
+}



More information about the arch-commits mailing list