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

Felix Yan felixonmars at archlinux.org
Sun Jul 29 04:16:20 UTC 2018


    Date: Sunday, July 29, 2018 @ 04:16:19
  Author: felixonmars
Revision: 364020

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-aeson-qq/repos/community-staging-x86_64/
  haskell-aeson-qq/repos/community-staging-x86_64/PKGBUILD
    (from rev 364019, haskell-aeson-qq/trunk/PKGBUILD)

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

Copied: haskell-aeson-qq/repos/community-staging-x86_64/PKGBUILD (from rev 364019, haskell-aeson-qq/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-07-29 04:16:19 UTC (rev 364020)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=aeson-qq
+pkgname=haskell-aeson-qq
+pkgver=0.8.2
+pkgrel=63
+pkgdesc="JSON quasiquoter for Haskell"
+url="https://github.com/sol/aeson-qq"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-base-compat' 'haskell-attoparsec' 'haskell-scientific'
+         'haskell-vector' 'haskell-aeson' 'haskell-src-meta')
+makedepends=('ghc' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('bae36bcda3adc946253f373158a7e2b1604bb0d1dfb733295be08c2497c22d2b114849dc02a7846dac30394f112181fc8531837f005d004d8bdf6f3bd79724a3')
+
+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