[arch-commits] Commit in haskell-fold-debounce/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Sat Nov 13 11:32:09 UTC 2021


    Date: Saturday, November 13, 2021 @ 11:32:09
  Author: felixonmars
Revision: 1045235

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-fold-debounce/repos/community-staging-x86_64/
  haskell-fold-debounce/repos/community-staging-x86_64/PKGBUILD
    (from rev 1045234, haskell-fold-debounce/trunk/PKGBUILD)

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

Copied: haskell-fold-debounce/repos/community-staging-x86_64/PKGBUILD (from rev 1045234, haskell-fold-debounce/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-13 11:32:09 UTC (rev 1045235)
@@ -0,0 +1,43 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+_pkgname=fold-debounce
+pkgname=haskell-fold-debounce
+pkgver=0.2.0.9
+pkgrel=123
+pkgdesc='Fold multiple events that happen in a given period of time'
+arch=(x86_64)
+url="https://hackage.haskell.org/package/$_pkgname"
+license=(BSD)
+depends=(ghc-libs haskell-stm haskell-stm-delay haskell-data-default-class)
+checkdepends=(haskell-hspec)
+makedepends=(ghc)
+source=("https://hackage.haskell.org/packages/archive/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.gz")
+sha512sums=('a7d23a153c9bc06c2371c5df49f14f6f673328b7ec2528f142a2becc4b77e0d392000018a637909c4e8808acce91e3001c046064c4b7cb30442d2171782aa19e')
+
+build() {
+  cd $_pkgname-$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 --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 $_pkgname-$pkgver
+  runhaskell Setup test --show-details=direct
+}
+
+package() {
+  cd $_pkgname-$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
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list