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

Felix Yan felixonmars at archlinux.org
Mon Jun 7 19:34:53 UTC 2021


    Date: Monday, June 7, 2021 @ 19:34:52
  Author: felixonmars
Revision: 958096

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-parsec-numbers/repos/community-staging-x86_64/
  haskell-parsec-numbers/repos/community-staging-x86_64/PKGBUILD
    (from rev 958095, haskell-parsec-numbers/trunk/PKGBUILD)

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

Copied: haskell-parsec-numbers/repos/community-staging-x86_64/PKGBUILD (from rev 958095, haskell-parsec-numbers/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-06-07 19:34:52 UTC (rev 958096)
@@ -0,0 +1,37 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Gabriel-Andrew Pollo-Guilbert <gabrielpolloguilbert at gmail.com>
+
+_hkgname=parsec-numbers
+pkgname=haskell-${_hkgname}
+pkgver=0.1.0
+pkgrel=16
+pkgdesc='Number parsers without the need to use a large (and unportable) token parser'
+url='https://hackage.haskell.org/package/parsec-numbers'
+arch=('x86_64')
+license=('BSD')
+depends=('ghc-libs' 'haskell-parsec')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/package/${_hkgname}-${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('8a06ef239e6fb9fabaf04d947c21b298acd9538d2f98dd2404d943c18b5f29aa0d11572be3e1a846ae3d1345fbbdc5b2803df3ec196ccc212c4d76082c930b05')
+
+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 -Dm 744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
+  install -Dm 744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"
+  runhaskell Setup copy --destdir="$pkgdir"
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list