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

Felix Yan felixonmars at gemini.archlinux.org
Tue Jul 20 09:47:52 UTC 2021


    Date: Tuesday, July 20, 2021 @ 09:47:52
  Author: felixonmars
Revision: 979574

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-doclayout/repos/community-staging-x86_64/
  haskell-doclayout/repos/community-staging-x86_64/PKGBUILD
    (from rev 979573, haskell-doclayout/trunk/PKGBUILD)

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

Copied: haskell-doclayout/repos/community-staging-x86_64/PKGBUILD (from rev 979573, haskell-doclayout/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-07-20 09:47:52 UTC (rev 979574)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=doclayout
+pkgname=haskell-doclayout
+pkgver=0.3.0.2
+pkgrel=22
+pkgdesc="A prettyprinting library for laying out text documents"
+url="https://github.com/jgm/doclayout"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-safe')
+makedepends=('ghc' 'haskell-tasty' 'haskell-tasty-golden' 'haskell-tasty-hunit')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('5f777b66c5bb589021ce6f74e4cb4520a5078621cbcc62bc4eb8b73d54771f18523dfe40935f83553a5a4244219a86b6af22e7e3f33d251b3c567f91bb9596c0')
+
+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 $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