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

Felix Yan felixonmars at gemini.archlinux.org
Mon Dec 20 16:33:44 UTC 2021


    Date: Monday, December 20, 2021 @ 16:33:44
  Author: felixonmars
Revision: 1080328

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-opentelemetry/repos/community-staging-x86_64/PKGBUILD (from rev 1080327, haskell-opentelemetry/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-12-20 16:33:44 UTC (rev 1080328)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=opentelemetry
+pkgname=haskell-opentelemetry
+pkgver=0.7.0
+pkgrel=28
+pkgdesc="The OpenTelemetry Haskell Client"
+url="https://github.com/ethercrow/opentelemetry-haskell"
+license=("Apache")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-ghc-trace-events' 'haskell-hashable')
+makedepends=('ghc' 'uusi')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha512sums=('a85fdff1cd1da3b06e6e825504342a4ef2111de5c56429e80db9bf16a26420b32f6646913bfff38848c5b6d641dc8148a70110f3751fb063a80309ff5fd2f3e5')
+
+prepare() {
+  cd $_hkgname-$pkgver
+  gen-setup
+}
+
+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 --ghc-option=-fllvm \
+    --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+    --ghc-option='-pie'
+
+  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"
+  rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}



More information about the arch-commits mailing list