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

Felix Yan felixonmars at archlinux.org
Sun May 12 11:38:39 UTC 2019


    Date: Sunday, May 12, 2019 @ 11:38:39
  Author: felixonmars
Revision: 466247

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-hslogger/repos/community-staging-x86_64/PKGBUILD (from rev 466246, haskell-hslogger/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-05-12 11:38:39 UTC (rev 466247)
@@ -0,0 +1,37 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=haskell-hslogger
+pkgver=1.2.12
+pkgrel=21
+pkgdesc="Versatile logging framework"
+url="https://hackage.haskell.org/package/hslogger"
+license=('LGPL')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-network' 'haskell-old-locale')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/hslogger/${pkgver}/hslogger-${pkgver}.tar.gz")
+sha512sums=('a4dd318a2c1242dd289307a4b4b27d0bb74acd817eb39bbd205c215658e590436801f5277a1c91e8eb30fe8df6677a4b2901db24b52134b5e0ef9368536de861')
+
+build() {
+    cd "${srcdir}/hslogger-${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 "${srcdir}/hslogger-${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