[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Thu Sep 24 12:43:10 UTC 2020


    Date: Thursday, September 24, 2020 @ 12:43:09
  Author: felixonmars
Revision: 711693

addpkg: haskell-monadprompt 1.0.0.5-1

Added:
  haskell-monadprompt/
  haskell-monadprompt/repos/
  haskell-monadprompt/trunk/
  haskell-monadprompt/trunk/PKGBUILD

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

Added: haskell-monadprompt/trunk/PKGBUILD
===================================================================
--- haskell-monadprompt/trunk/PKGBUILD	                        (rev 0)
+++ haskell-monadprompt/trunk/PKGBUILD	2020-09-24 12:43:09 UTC (rev 711693)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=MonadPrompt
+pkgname=haskell-monadprompt
+pkgver=1.0.0.5
+pkgrel=1
+pkgdesc="MonadPrompt, implementation & examples"
+url="https://hackage.haskell.org/package/MonadPrompt"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha256sums=('b012cbbe83650f741c7b7f6eafcc89dec299b0ac74a758b6f3a8cdfc5d3bbeda')
+
+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
+  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"
+  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