[arch-commits] Commit in haskell-broadcast-chan/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Apr 23 23:04:07 UTC 2020
Date: Thursday, April 23, 2020 @ 23:04:07
Author: felixonmars
Revision: 618423
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-broadcast-chan/repos/community-staging-x86_64/
haskell-broadcast-chan/repos/community-staging-x86_64/PKGBUILD
(from rev 618422, haskell-broadcast-chan/trunk/PKGBUILD)
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Copied: haskell-broadcast-chan/repos/community-staging-x86_64/PKGBUILD (from rev 618422, haskell-broadcast-chan/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-04-23 23:04:07 UTC (rev 618423)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=broadcast-chan
+pkgname=haskell-broadcast-chan
+pkgver=0.2.1
+pkgrel=7
+pkgdesc="Closable, fair, single-wakeup channel type that avoids 0 reader space leaks"
+url="https://github.com/merijn/broadcast-chan"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-unliftio-core')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('25e5f8bcc2c27d0cf21ca205f234048df64d6d881f24a48169b88ce198db525f12ea727962f7bf14e4ee6546e23b49c6b47aa1a44a3f3e7d6028d2bf12a01d1c')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -i 's/< *0.2/<1/;s/< *4.14/<5/' $_hkgname.cabal
+ sed -i 's/, UnliftIO/, askUnliftIO, UnliftIO/' BroadcastChan.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
+ 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
+}
More information about the arch-commits
mailing list