[arch-commits] Commit in haskell-th-reify-many/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Dec 28 01:06:53 UTC 2017


    Date: Thursday, December 28, 2017 @ 01:06:52
  Author: felixonmars
Revision: 276275

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-th-reify-many/repos/community-staging-x86_64/
  haskell-th-reify-many/repos/community-staging-x86_64/PKGBUILD
    (from rev 276274, haskell-th-reify-many/trunk/PKGBUILD)

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

Copied: haskell-th-reify-many/repos/community-staging-x86_64/PKGBUILD (from rev 276274, haskell-th-reify-many/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-12-28 01:06:52 UTC (rev 276275)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=th-reify-many
+pkgname=haskell-th-reify-many
+pkgver=0.1.8
+pkgrel=6
+pkgdesc="Recurseively reify template haskell datatype info"
+url="https://github.com/mgsloan/th-reify-many"
+license=('custom:BSD3')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-mtl' 'haskell-safe' 'haskell-th-expand-syns')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('cea205dea58bbca997c35c2d1bc5def46f415f5a35582913aef212b4b4f0ec7646fb425d94db4c4880b3a6ad7360f116dec7ad670fbee04c3d3e8ec520b18721')
+
+build() {
+    cd "${srcdir}/${_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
+    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 "${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"
+}



More information about the arch-commits mailing list