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

Felix Yan felixonmars at gemini.archlinux.org
Wed Nov 10 16:10:58 UTC 2021


    Date: Wednesday, November 10, 2021 @ 16:10:57
  Author: felixonmars
Revision: 1039809

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 1039808, haskell-opentelemetry/trunk/PKGBUILD)

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

Copied: haskell-opentelemetry/repos/community-staging-x86_64/PKGBUILD (from rev 1039808, haskell-opentelemetry/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-10 16:10:57 UTC (rev 1039809)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=opentelemetry
+pkgname=haskell-opentelemetry
+pkgver=0.7.0
+pkgrel=20
+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