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

Felix Yan felixonmars at archlinux.org
Wed Feb 26 17:53:59 UTC 2020


    Date: Wednesday, February 26, 2020 @ 17:53:58
  Author: felixonmars
Revision: 583057

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-cpphs/repos/community-staging-x86_64/PKGBUILD (from rev 583056, haskell-cpphs/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-02-26 17:53:58 UTC (rev 583057)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=cpphs
+pkgname=haskell-cpphs
+pkgver=1.20.9
+pkgrel=1
+pkgdesc="A liberalised re-implementation of cpp, the C pre-processor."
+url="https://projects.haskell.org/cpphs/"
+license=("LGPL")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-polyparse')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('9c43799c61ff6d4c7229efd7a01cc33844acc6a33ca62f11bde2ef3c4615edcd28b7dec47259a0fcd1822031a4fac79f4d4b1464c2e4db49316fd839b4cd8ece')
+
+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
+    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