[arch-commits] Commit in haskell-criterion-measurement/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Jul 16 12:15:12 UTC 2018
Date: Monday, July 16, 2018 @ 12:15:11
Author: felixonmars
Revision: 359837
archrelease: copy trunk to community-x86_64
Added:
haskell-criterion-measurement/repos/community-x86_64/
haskell-criterion-measurement/repos/community-x86_64/PKGBUILD
(from rev 359836, haskell-criterion-measurement/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: haskell-criterion-measurement/repos/community-x86_64/PKGBUILD (from rev 359836, haskell-criterion-measurement/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2018-07-16 12:15:11 UTC (rev 359837)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=criterion-measurement
+pkgname=haskell-criterion-measurement
+pkgver=0.1.0.0
+pkgrel=1
+pkgdesc="Criterion measurement functionality and associated types"
+url="https://github.com/bos/criterion"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-base-compat' 'haskell-vector')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('c453004332275fb2b44d6b88b0a6b616c340675e80376d66c8e2115623c530eb95512141f22f5fa18901d0221471b7991a9a2c190e00f3d7f1afc09472160f52')
+
+build() {
+ cd $_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 $_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