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

Felix Yan felixonmars at gemini.archlinux.org
Mon Mar 14 00:10:11 UTC 2022


    Date: Monday, March 14, 2022 @ 00:10:10
  Author: felixonmars
Revision: 1151929

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-show/repos/community-staging-x86_64/PKGBUILD (from rev 1151928, haskell-show/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-03-14 00:10:10 UTC (rev 1151929)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=show
+pkgname=haskell-show
+pkgver=0.6
+pkgrel=79
+pkgdesc="'Show' instances for Lambdabot"
+url="https://github.com/mokus0/show.git"
+license=("GPL")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-syb')
+makedepends=('ghc' )
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha256sums=('4f57a947a538d021406f649049dde27d4d8d0b44aac3ba38fa64806c9d737b95')
+
+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