[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed Nov 29 12:15:42 UTC 2017


    Date: Wednesday, November 29, 2017 @ 12:15:41
  Author: felixonmars
Revision: 270659

addpkg: haskell-timeit 1.0.0.0-1

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

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

Added: haskell-timeit/trunk/PKGBUILD
===================================================================
--- haskell-timeit/trunk/PKGBUILD	                        (rev 0)
+++ haskell-timeit/trunk/PKGBUILD	2017-11-29 12:15:41 UTC (rev 270659)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=timeit
+pkgname=haskell-timeit
+pkgver=1.0.0.0
+pkgrel=1
+pkgdesc="A simple wrapper of an IO computation to show the used CPU time"
+url="https://hackage.haskell.org/package/timeit"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('8b1b95d4e759cddedf49e863e103eb12082a509c844e79f0eb40bd7fc95f3960aecfb59c65aa04815769e139561ed1d76908dff3b5279feb7358eca3b16f0ebd')
+
+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
+    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}"
+}


Property changes on: haskell-timeit/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property


More information about the arch-commits mailing list