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

Felix Yan felixonmars at archlinux.org
Mon Jun 7 01:38:03 UTC 2021


    Date: Monday, June 7, 2021 @ 01:38:02
  Author: felixonmars
Revision: 956765

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-prettyclass/repos/community-staging-x86_64/PKGBUILD (from rev 956764, haskell-prettyclass/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-06-07 01:38:02 UTC (rev 956765)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=prettyclass
+pkgname=haskell-prettyclass
+pkgver=1.0.0.0
+pkgrel=16
+pkgdesc="Pretty printing class similar to Show."
+url="https://github.com/JustusAdam/prettyclass"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('f0785e7780f71ee0f8f6b6ca5db6a82f030f75b34f618ff9ee0025032516114769f4cd4e6094b5fefd13e645a7eece9d87b82c2d4c144dddf5093bc2c600af4a')
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+        --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
+}
+
+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"
+}



More information about the arch-commits mailing list