Date: Monday, January 21, 2019 @ 08:19:49
  Author: felixonmars
Revision: 425811

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-foundation/repos/community-staging-x86_64/
  haskell-foundation/repos/community-staging-x86_64/PKGBUILD
    (from rev 425810, haskell-foundation/trunk/PKGBUILD)

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

Copied: haskell-foundation/repos/community-staging-x86_64/PKGBUILD (from rev 
425810, haskell-foundation/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-01-21 08:19:49 UTC (rev 425811)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Thomas Dziedzic <gos...@gmail.com>
+
+_hkgname=foundation
+pkgname=haskell-foundation
+pkgver=0.0.21
+pkgrel=18
+pkgdesc="Alternative prelude with batteries and no dependencies"
+url="https://github.com/haskell-foundation/foundation";
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-basement')
+makedepends=('ghc' 'haskell-doctest')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('bc7315151f1c36ec2ecaa9ea93572d80fbf5a18539e5f3fa416bdc0a8ac9bc52d29caaf23fbb09891dd3bb0925534bb748c5c54258351ae2befc80576d4265a6')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs
+}
+
+build() {
+    cd $_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 \
+            -f-experimental -f-minimal-deps -f-doctest -flinktest 
-f-bounds-check
+    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 $_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