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

Felix Yan felixonmars at gemini.archlinux.org
Tue Feb 1 22:49:12 UTC 2022


    Date: Tuesday, February 1, 2022 @ 22:49:12
  Author: felixonmars
Revision: 1122184

archrelease: copy trunk to community-x86_64

Added:
  haskell-mtl-prelude/repos/community-x86_64/
  haskell-mtl-prelude/repos/community-x86_64/PKGBUILD
    (from rev 1122183, haskell-mtl-prelude/trunk/PKGBUILD)

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

Copied: haskell-mtl-prelude/repos/community-x86_64/PKGBUILD (from rev 1122183, haskell-mtl-prelude/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-02-01 22:49:12 UTC (rev 1122184)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=mtl-prelude
+pkgname=haskell-mtl-prelude
+pkgver=2.0.3.1
+pkgrel=1
+pkgdesc='Reexports of most definitions from "mtl" and "transformers"'
+url="https://github.com/nikita-volkov/mtl-prelude "
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha256sums=('c4a6dda093d63bd2161f55030c5825903dfa9b7d5e766c487fd848cb2aa01233')
+
+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 -t "$pkgdir"/usr/share/licenses/$pkgname/
+  rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}



More information about the arch-commits mailing list