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

Felix Yan felixonmars at archlinux.org
Wed Dec 23 21:18:33 UTC 2020


    Date: Wednesday, December 23, 2020 @ 21:18:33
  Author: felixonmars
Revision: 785284

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-polyparse/repos/community-staging-x86_64/PKGBUILD (from rev 785283, haskell-polyparse/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-12-23 21:18:33 UTC (rev 785284)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=polyparse
+pkgname=haskell-polyparse
+pkgver=1.13
+pkgrel=7
+pkgdesc="A variety of alternative parser combinator libraries."
+url="http://code.haskell.org/~malcolm/polyparse/"
+license=("LGPL")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('3b66a73f97d6b5b6628193f87cae1ae1a68d63df0058532b2ac9a62af82dabe28e15fe1464075a2f436e70a7d20b57e72fdd7831f8b11035ff8117becb08d18e')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i 's/< *4.14/<5/' $_hkgname.cabal
+}
+
+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"
+    install -D -m644 "COPYRIGHT" "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYRIGHT"
+}



More information about the arch-commits mailing list