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

Felix Yan felixonmars at archlinux.org
Thu May 13 18:35:47 UTC 2021


    Date: Thursday, May 13, 2021 @ 18:35:46
  Author: felixonmars
Revision: 933413

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 933412, haskell-show/trunk/PKGBUILD)

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

Copied: haskell-show/repos/community-staging-x86_64/PKGBUILD (from rev 933412, haskell-show/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-05-13 18:35:46 UTC (rev 933413)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=show
+pkgname=haskell-show
+pkgver=0.6
+pkgrel=33
+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=-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