[arch-commits] Commit in (4 files)

Levente Polyak anthraxx at archlinux.org
Tue Aug 14 18:38:40 UTC 2018


    Date: Tuesday, August 14, 2018 @ 18:38:39
  Author: anthraxx
Revision: 371633

addpkg: haskell-parsec-numbers 0.1.0-2

Added:
  haskell-parsec-numbers/
  haskell-parsec-numbers/repos/
  haskell-parsec-numbers/trunk/
  haskell-parsec-numbers/trunk/PKGBUILD

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

Added: haskell-parsec-numbers/trunk/PKGBUILD
===================================================================
--- haskell-parsec-numbers/trunk/PKGBUILD	                        (rev 0)
+++ haskell-parsec-numbers/trunk/PKGBUILD	2018-08-14 18:38:39 UTC (rev 371633)
@@ -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=2
+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=('custom:BSD3')
+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
+  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