[arch-commits] Commit in (4 files)

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


    Date: Tuesday, February 1, 2022 @ 22:59:49
  Author: felixonmars
Revision: 1122187

addpkg: haskell-htf 0.14.0.6-1

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

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

Added: haskell-htf/trunk/PKGBUILD
===================================================================
--- haskell-htf/trunk/PKGBUILD	                        (rev 0)
+++ haskell-htf/trunk/PKGBUILD	2022-02-01 22:59:49 UTC (rev 1122187)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=HTF
+pkgname=haskell-htf
+pkgver=0.14.0.6
+pkgrel=1
+pkgdesc="The Haskell Test Framework"
+url="https://github.com/skogsbaer/HTF/"
+license=("LGPL2")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-diff' 'haskell-hunit' 'haskell-quickcheck' 'haskell-aeson'
+         'haskell-base64-bytestring' 'haskell-cpphs' 'haskell-src' 'haskell-lifted-base'
+         'haskell-monad-control' 'haskell-old-time' 'haskell-random' 'haskell-regex-compat'
+         'haskell-vector' 'haskell-xmlgen')
+makedepends=('ghc' 'haskell-aeson-pretty' 'haskell-temporary' 'haskell-unordered-containers')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha256sums=('58cfad065c069c4a484f6d342b5bb60c4c13103c72ba6d4aa43e2d6b87daa452')
+
+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'
+
+  LD_LIBRARY_PATH="$PWD"/dist/build 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
+}
+
+check() {
+  cd $_hkgname-$pkgver
+  runhaskell Setup test
+}
+
+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