Date: Thursday, April 25, 2019 @ 15:09:29
  Author: felixonmars
Revision: 453904

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 453903, haskell-smallcheck/trunk/PKGBUILD)

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

Copied: haskell-smallcheck/repos/community-staging-x86_64/PKGBUILD (from rev 
453903, haskell-smallcheck/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-04-25 15:09:29 UTC (rev 453904)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+_hkgname=smallcheck
+pkgname=haskell-smallcheck
+pkgver=1.1.5
+pkgrel=6
+pkgdesc="A property-based testing library"
+url="https://github.com/feuerbach/smallcheck";
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-logict')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('6d97f91308146031a16a405391ec2b283ad719c0acc2a0672c22cc880d91c3d72f845f65897e36945c45746d2d705a9f9f16b1ff5fef1f39c9abb60a4e57430c')
+
+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"
+}

Reply via email to