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

Felix Yan felixonmars at archlinux.org
Tue Nov 28 10:26:26 UTC 2017


    Date: Tuesday, November 28, 2017 @ 10:26:25
  Author: felixonmars
Revision: 270465

archrelease: copy trunk to community-testing-x86_64

Added:
  haskell-stringbuilder/repos/community-testing-x86_64/
  haskell-stringbuilder/repos/community-testing-x86_64/PKGBUILD
    (from rev 270464, haskell-stringbuilder/trunk/PKGBUILD)

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

Copied: haskell-stringbuilder/repos/community-testing-x86_64/PKGBUILD (from rev 270464, haskell-stringbuilder/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-11-28 10:26:25 UTC (rev 270465)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=stringbuilder
+pkgname=haskell-stringbuilder
+pkgver=0.5.0
+pkgrel=1
+pkgdesc="A writer monad for multi-line string literals"
+url="https://github.com/sol/stringbuilder"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('39c461a753c1e494b66021e5e277154e3f7aa642414a6848658b30b6ce5d0ca02e6ea9d946361be0ecefe948138f83cc16a5d04341f088666cc131f7a73a38c6')
+
+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