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

Felix Yan felixonmars at archlinux.org
Sun Jun 28 22:50:15 UTC 2020


    Date: Sunday, June 28, 2020 @ 22:50:14
  Author: felixonmars
Revision: 655574

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-pretty-simple/repos/community-staging-x86_64/
  haskell-pretty-simple/repos/community-staging-x86_64/PKGBUILD
    (from rev 655573, haskell-pretty-simple/trunk/PKGBUILD)

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

Copied: haskell-pretty-simple/repos/community-staging-x86_64/PKGBUILD (from rev 655573, haskell-pretty-simple/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-06-28 22:50:14 UTC (rev 655574)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=pretty-simple
+pkgname=haskell-pretty-simple
+pkgver=3.3.0.0
+pkgrel=2
+pkgdesc="Pretty printer for data types with a 'Show' instance"
+url="https://github.com/cdepillabout/pretty-simple"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-ansi-terminal')
+makedepends=('ghc' 'haskell-cabal-doctest' 'haskell-doctest' 'haskell-glob' 'haskell-quickcheck')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('4a3b0294c928879efac67a0e2dbd07390a5ec4eff5ed007fa4b6787b771795428e3b87eabf1fb92b93930ae053a2a4c541d4758c459248fd210d1a99ee5d47ce')
+
+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
+}
+
+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