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

Felix Yan felixonmars at archlinux.org
Sun Oct 14 23:15:24 UTC 2018


    Date: Sunday, October 14, 2018 @ 23:15:24
  Author: felixonmars
Revision: 393924

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-quickcheck/repos/community-staging-x86_64/PKGBUILD (from rev 393923, haskell-quickcheck/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-10-14 23:15:24 UTC (rev 393924)
@@ -0,0 +1,45 @@
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Vesa Kaihlavirta <vesa at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=QuickCheck
+pkgname=haskell-quickcheck
+pkgver=2.12.1
+pkgrel=2
+pkgdesc='Automatic testing of Haskell programs'
+url='https://hackage.haskell.org/package/QuickCheck'
+license=('custom:BSD3')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-erf' 'haskell-random' 'haskell-tf-random')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha512sums=('280bc8e8b05e096629e5afdb6cd5c7f42690b8632af11ed513454ec7dbd8eff88518ae532b2055a30a57fe8bef3afa35cfe4ed981509d917b20a45c010b62629')
+
+build() {
+  cd "$srcdir/$_hkgname-$pkgver"
+
+  runhaskell Setup configure \
+    -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+    --prefix=/usr --docdir="/usr/share/doc/$pkgname" \
+    --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+    -ftemplateHaskell
+
+  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 "$srcdir/$_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"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list