[arch-commits] Commit in haskell-smallcheck/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Dec 19 04:42:33 UTC 2017
Date: Tuesday, December 19, 2017 @ 04:42:32
Author: felixonmars
Revision: 274848
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-smallcheck/repos/community-staging-x86_64/
haskell-smallcheck/repos/community-staging-x86_64/PKGBUILD
(from rev 274847, haskell-smallcheck/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: haskell-smallcheck/repos/community-staging-x86_64/PKGBUILD (from rev 274847, haskell-smallcheck/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-12-19 04:42:32 UTC (rev 274848)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=smallcheck
+pkgname=haskell-smallcheck
+pkgver=1.1.3
+pkgrel=1
+pkgdesc="A property-based testing library"
+url="https://github.com/feuerbach/smallcheck"
+license=('custom:BSD3')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-logict' 'haskell-mtl')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('2783bfe5393d7b57dbab6f1f6c62dcd46356076d9e064359492980a0e423fbcf434c081a29eb1ea9ac0ce6e929e7a8c0aac44e8aca9e217a656f91bb42f2aabd')
+
+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}"
+ 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