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

Felix Yan felixonmars at gemini.archlinux.org
Tue Aug 17 15:45:39 UTC 2021


    Date: Tuesday, August 17, 2021 @ 15:45:39
  Author: felixonmars
Revision: 1001930

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 1001929, haskell-hslogger/trunk/PKGBUILD)

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

Copied: haskell-hslogger/repos/community-staging-x86_64/PKGBUILD (from rev 1001929, haskell-hslogger/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-08-17 15:45:39 UTC (rev 1001930)
@@ -0,0 +1,42 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=haskell-hslogger
+pkgver=1.3.1.0
+pkgrel=126
+pkgdesc="Versatile logging framework"
+url="https://hackage.haskell.org/package/hslogger"
+license=('LGPL')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-network' 'haskell-network-bsd' 'haskell-old-locale')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/hslogger/${pkgver}/hslogger-${pkgver}.tar.gz")
+sha512sums=('a08e7c85efe2b3f97e87b54db993f78ac31380f9b6f8d926517854771f482b2c64c358ddd12a449a413e5af0f374c034161b6f772148835b50551dc2cdbfa15a')
+
+prepare() {
+    cd hslogger-$pkgver
+    sed -i 's/< *4.14/<5/' hslogger.cabal
+}
+
+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 $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 "${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