Date: Tuesday, October 18, 2022 @ 00:18:15
  Author: felixonmars
Revision: 1330849

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-rio/repos/community-staging-x86_64/PKGBUILD (from rev 1330848, 
haskell-rio/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-10-18 00:18:15 UTC (rev 1330849)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+_hkgname=rio
+pkgname=haskell-rio
+pkgver=0.1.22.0
+pkgrel=43
+pkgdesc="A standard library for Haskell"
+url="https://github.com/commercialhaskell/rio";
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-hashable' 'haskell-microlens' 
'haskell-microlens-mtl'
+         'haskell-primitive' 'haskell-typed-process' 'haskell-unliftio' 
'haskell-unliftio-core'
+         'haskell-unordered-containers' 'haskell-vector')
+makedepends=('ghc' 'uusi' 'haskell-hspec' 'haskell-hspec-discover' 
'haskell-quickcheck')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('a324bdc62341f7da9300c429712963de3926d5585a5772d412ba50d75503fd1c08edb7e6712d9ddc5d825910a5d59e13d9f0c48a2dca98efe33fead44ec7f8bd')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    gen-setup
+}
+
+build() {
+    cd $_hkgname-$pkgver    
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname 
--enable-tests \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+    runhaskell Setup build $MAKEFLAGS
+    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 --show-details=direct
+}
+
+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