[arch-commits] Commit in c2hs/repos/community-staging-x86_64 (PKGBUILD PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Sun May 15 01:11:37 UTC 2022


    Date: Sunday, May 15, 2022 @ 01:11:36
  Author: felixonmars
Revision: 1205477

archrelease: copy trunk to community-staging-x86_64

Added:
  c2hs/repos/community-staging-x86_64/PKGBUILD
    (from rev 1205476, c2hs/trunk/PKGBUILD)
Deleted:
  c2hs/repos/community-staging-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-15 01:11:12 UTC (rev 1205476)
+++ PKGBUILD	2022-05-15 01:11:36 UTC (rev 1205477)
@@ -1,49 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
-
-pkgname=c2hs
-pkgver=0.28.8
-pkgrel=74
-pkgdesc="C->Haskell FFI tool that gives some cross-language type safety"
-url="https://github.com/haskell/c2hs"
-license=("GPL2")
-arch=('x86_64')
-depends=('ghc-libs' 'haskell-dlist' 'haskell-language-c')
-makedepends=('ghc' 'uusi' 'haskell-test-framework' 'haskell-test-framework-hunit' 'haskell-hunit'
-             'haskell-shelly')
-source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
-        https://github.com/haskell/c2hs/archive/fbb4c2fa6ec5528aa068512f1b691298db420321.tar.gz)
-sha512sums=('ff9119acecddd853f2f797385f971c249bcd92d4b141e8e7ea5f5d3e63aa257502c80ded2720a46e3186260026b94c9e518f08f8e452a64c9f888d0183ee1749'
-            '2953a07fecc95cfd5086b973a0d12b7407417f16bf73ad0f7d261e9e1884cf14b18663c15d86c8bf047dff05de70d4f01195e5d70c3225c86695fc57c8cf70e9')
-
-prepare() {
-    sed -i 's/cmd "ghc"/cmd "ghc" "-dynamic"/' c2hs-$pkgver/tests/test-*.hs
-    sed -i 's/HC=ghc/HC="ghc -dynamic"/' c2hs-$pkgver/tests/system/Makefile
-    sed -i 's/"ghc", \["-/"ghc", ["-dynamic", "-/' c2hs-$pkgver/tests/test-*.hs
-
-    # Missing test files
-    # https://github.com/haskell/c2hs/pull/266
-    cp -r c2hs-fbb4c2fa6ec5528aa068512f1b691298db420321/tests/bugs/issue-242 c2hs-$pkgver/tests/bugs/
-    cp -r c2hs-fbb4c2fa6ec5528aa068512f1b691298db420321/tests/system/interruptible c2hs-$pkgver/tests/system/
-
-    uusi -u shelly c2hs-$pkgver/c2hs.cabal
-}
-
-build() {
-    cd $pkgname-$pkgver
-
-    runhaskell Setup configure -O --enable-executable-dynamic --prefix=/usr \
-        --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \
-            -f-regression -fbase3 --ghc-option='-pie'
-    runhaskell Setup build $MAKEFLAGS
-}
-
-check() {
-    cd $pkgname-$pkgver
-    runhaskell Setup test --show-details=direct
-}
-
-package() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
-    runhaskell Setup copy --destdir="${pkgdir}"
-}

Copied: c2hs/repos/community-staging-x86_64/PKGBUILD (from rev 1205476, c2hs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-05-15 01:11:36 UTC (rev 1205477)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=c2hs
+pkgver=0.28.8
+pkgrel=75
+pkgdesc="C->Haskell FFI tool that gives some cross-language type safety"
+url="https://github.com/haskell/c2hs"
+license=("GPL2")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-dlist' 'haskell-language-c')
+makedepends=('ghc' 'uusi' 'haskell-test-framework' 'haskell-test-framework-hunit' 'haskell-hunit'
+             'haskell-shelly')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+        https://github.com/haskell/c2hs/archive/fbb4c2fa6ec5528aa068512f1b691298db420321.tar.gz)
+sha512sums=('ff9119acecddd853f2f797385f971c249bcd92d4b141e8e7ea5f5d3e63aa257502c80ded2720a46e3186260026b94c9e518f08f8e452a64c9f888d0183ee1749'
+            '2953a07fecc95cfd5086b973a0d12b7407417f16bf73ad0f7d261e9e1884cf14b18663c15d86c8bf047dff05de70d4f01195e5d70c3225c86695fc57c8cf70e9')
+
+prepare() {
+    sed -i 's/cmd "ghc"/cmd "ghc" "-dynamic"/' c2hs-$pkgver/tests/test-*.hs
+    sed -i 's/HC=ghc/HC="ghc -dynamic"/' c2hs-$pkgver/tests/system/Makefile
+    sed -i 's/"ghc", \["-/"ghc", ["-dynamic", "-/' c2hs-$pkgver/tests/test-*.hs
+
+    # Missing test files
+    # https://github.com/haskell/c2hs/pull/266
+    cp -r c2hs-fbb4c2fa6ec5528aa068512f1b691298db420321/tests/bugs/issue-242 c2hs-$pkgver/tests/bugs/
+    cp -r c2hs-fbb4c2fa6ec5528aa068512f1b691298db420321/tests/system/interruptible c2hs-$pkgver/tests/system/
+
+    uusi -u shelly c2hs-$pkgver/c2hs.cabal
+}
+
+build() {
+    cd $pkgname-$pkgver
+
+    runhaskell Setup configure -O --enable-executable-dynamic --prefix=/usr \
+        --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \
+            -f-regression -fbase3 --ghc-option='-pie'
+    runhaskell Setup build $MAKEFLAGS
+}
+
+check() {
+    cd $pkgname-$pkgver
+    runhaskell Setup test --show-details=direct
+}
+
+package() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+}



More information about the arch-commits mailing list