[arch-commits] Commit in haskell-base-compat-batteries/repos/community-staging-x86_64 (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Sun Mar 13 21:58:49 UTC 2022


    Date: Sunday, March 13, 2022 @ 21:58:48
  Author: felixonmars
Revision: 1151593

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-base-compat-batteries/repos/community-staging-x86_64/PKGBUILD
    (from rev 1151592, haskell-base-compat-batteries/trunk/PKGBUILD)
Deleted:
  haskell-base-compat-batteries/repos/community-staging-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-13 21:58:40 UTC (rev 1151592)
+++ PKGBUILD	2022-03-13 21:58:48 UTC (rev 1151593)
@@ -1,49 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-_hkgname=base-compat-batteries
-pkgname=haskell-base-compat-batteries
-pkgver=0.12.0
-pkgrel=11
-pkgdesc="base-compat with extra batteries"
-url="https://hackage.haskell.org/package/base-compat-batteries"
-license=('MIT')
-arch=('x86_64')
-depends=('ghc-libs' 'haskell-base-compat')
-makedepends=('ghc')
-checkdepends=('haskell-hspec' 'haskell-hspec-discover' 'haskell-quickcheck')
-source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
-sha512sums=('5eb31f42553f16d840822056ef84cf80949b29b91508bba3a8399da59b49252b9509f2c83531fa9f095abfeea6d65b7b541a1f9a526604ffc038ff6346a27a5d')
-
-build() {
-    cd $_hkgname-$pkgver
-
-    if (( CHECKFUNC )); then
-        _opts=('--enable-tests')
-    else
-        _opts=('--disable-tests')
-    fi
-
-    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
-        --prefix=/usr --docdir=/usr/share/doc/$pkgname "${_opts[@]}" \
-        --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
-}

Copied: haskell-base-compat-batteries/repos/community-staging-x86_64/PKGBUILD (from rev 1151592, haskell-base-compat-batteries/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-13 21:58:48 UTC (rev 1151593)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=base-compat-batteries
+pkgname=haskell-base-compat-batteries
+pkgver=0.12.0
+pkgrel=12
+pkgdesc="base-compat with extra batteries"
+url="https://hackage.haskell.org/package/base-compat-batteries"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-base-compat')
+makedepends=('ghc')
+checkdepends=('haskell-hspec' 'haskell-hspec-discover' 'haskell-quickcheck')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('5eb31f42553f16d840822056ef84cf80949b29b91508bba3a8399da59b49252b9509f2c83531fa9f095abfeea6d65b7b541a1f9a526604ffc038ff6346a27a5d')
+
+build() {
+    cd $_hkgname-$pkgver
+
+    if (( CHECKFUNC )); then
+        _opts=('--enable-tests')
+    else
+        _opts=('--disable-tests')
+    fi
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname "${_opts[@]}" \
+        --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
+}



More information about the arch-commits mailing list