[arch-commits] Commit in haskell-text-builder/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Apr 1 20:29:49 UTC 2020
Date: Wednesday, April 1, 2020 @ 20:29:48
Author: felixonmars
Revision: 609158
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-text-builder/repos/community-staging-x86_64/
haskell-text-builder/repos/community-staging-x86_64/PKGBUILD
(from rev 609157, haskell-text-builder/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: haskell-text-builder/repos/community-staging-x86_64/PKGBUILD (from rev 609157, haskell-text-builder/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-04-01 20:29:48 UTC (rev 609158)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=text-builder
+pkgname=haskell-text-builder
+pkgver=0.6.6.1
+pkgrel=31
+pkgdesc="An efficient strict text builder"
+url="https://github.com/nikita-volkov/text-builder"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-base-prelude' 'haskell-deferred-folds')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-quickcheck-instances' 'haskell-rerebase'
+ 'haskell-tasty' 'haskell-tasty-hunit' 'haskell-tasty-quickcheck')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('c98381114426ca93b4f4bf6899265a0c62ee683080acf3896e6f6592cefc4a2df00460908755a55be8b33af7840ccd378e48c52f4379f8dd4bc3411928c5c067')
+
+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