[arch-commits] Commit in haskell-brick/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Aug 31 10:18:46 UTC 2020
Date: Monday, August 31, 2020 @ 10:18:46
Author: felixonmars
Revision: 694084
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-brick/repos/community-staging-x86_64/
haskell-brick/repos/community-staging-x86_64/PKGBUILD
(from rev 694083, haskell-brick/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: haskell-brick/repos/community-staging-x86_64/PKGBUILD (from rev 694083, haskell-brick/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-08-31 10:18:46 UTC (rev 694084)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=brick
+pkgname=haskell-brick
+pkgver=0.55
+pkgrel=17
+pkgdesc="A declarative terminal user interface library"
+url="https://github.com/jtdaugherty/brick"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-vty' 'haskell-data-clist' 'haskell-dlist' 'haskell-microlens'
+ 'haskell-microlens-th' 'haskell-microlens-mtl' 'haskell-config-ini' 'haskell-vector'
+ 'haskell-contravariant' 'haskell-text-zipper' 'haskell-word-wrap')
+makedepends=('ghc' 'haskell-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('2045611bc220f2c36f40bf50c4c4d36d82f9d261819c8e59e571e67218ed314c02981d9e71698bc99f969189c7097adb8153ecd3a008fb92d3edf3d3e6a57365')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -i 's/<= *4.14/<5/' $_hkgname.cabal
+}
+
+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 \
+ -f-demos
+ 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
+}
+
+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